Function at 0x517800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x78c374
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.005139a0
cmp word [esi + 0xa8], 0x3f
jne 0x518244
cmp dword [esi + 0xac], 1
jne 0x518244
mov ecx, esi
call fcn.005139a0
movzx ecx, word [esi + 0xa8]
movzx eax, cx
xor edi, edi
add eax, 0xffffffdf
mov ebp, 0x3e
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
cmp eax, 0x31
ja case.0x517880.41
movzx eax, byte [eax + 0x51837c]
mov ebx, dword [esp + 0x4c]
jmp dword [eax*4 + 0x518358]
mov dword [esp + 0x18], 1
mov ecx, esi
call fcn.005139a0
push 0xc
call fcn.005645f4
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], 0
test edi, edi
je 0x5178d9
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
xor ecx, ecx
cmp dword [esp + 0x18], ecx
sete cl
and eax, 0xffffffef
push ecx
push eax
mov ecx, esi
call fcn.00516c20
push eax
mov ecx, edi
call fcn.0050f650
mov edi, eax
jmp 0x5178db
xor edi, edi
push edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x48], 0xffffffff
call fcn.0050eba0
mov ecx, esi
call fcn.005139a0
mov eax, edi
jmp 0x518341
movzx eax, word [esi + 0xb8]
cmp eax, 0x21
je 0x51790d
cmp eax, 0x3d
je 0x517915
jmp case.0x517880.39
mov dword [esp + 0x18], 1
mov ecx, esi
call fcn.005139a0
mov ecx, esi
call fcn.005139a0
push 0xc
call fcn.005645f4
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], 1
test edi, edi
je 0x517960
mov edx, dword [ebx]
xor ecx, ecx
cmp dword [esp + 0x18], ecx
sete cl
or edx, 0x10
push ecx
push edx
mov ecx, esi
call fcn.00516c20
push eax
mov ecx, edi
call fcn.0050f650
jmp 0x517962
xor eax, eax
push eax
mov ecx, esi
mov dword [esp + 0x48], 0xffffffff
call fcn.0050ec20
mov edi, eax
test edi, edi
jne 0x518236
cmp word [esi + 0xa8], 0x50
jne case.0x517880.34
mov ecx, esi
call fcn.005139a0
movzx eax, word [esi + 0xa8]
cmp ax, 0x3c
jne 0x5179a0
mov dword [esp + 0x1c], ebp
jmp 0x5179ae
cmp ax, 0x27
jne 0x5179ae
mov dword [esp + 0x1c], 0x27
mov ecx, esi
call fcn.005139a0
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], eax
inc eax
push 0x1c
mov dword [esi + 0xc], eax
call fcn.005645f4
add esp, 4
test eax, eax
je 0x5179df
mov ecx, dword [ebx]
and ecx, 0x10
push ecx
mov ecx, eax
call fcn.00512200
mov ebx, eax
jmp 0x5179e1
xor ebx, ebx
lea ebp, [esi + 0x14]
push ebx
mov ecx, ebp
call fcn.0050eba0
push 0x20
call fcn.005645f4
add esp, 4
test eax, eax
je 0x517a14
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx]
shr ecx, 4
and ecx, 1
push ecx
push 0xffffffffffffffff
mov ecx, eax
call fcn.0050ff60
mov edi, eax
jmp 0x517a16
xor edi, edi
push edi
mov ecx, ebp
call fcn.0050eba0
push 0x20
call fcn.005645f4
add esp, 4
test eax, eax
je 0x517a4a
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx]
shr ecx, 4
not ecx
and ecx, 1
push ecx
push 0xffffffffffffffff
mov ecx, eax
call fcn.0050ff60
mov dword [esp + 0x18], eax
jmp 0x517a52
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
push edx
mov ecx, ebp
call fcn.0050eba0
lea ecx, [esp + 0x28]
lea ebp, [edi + 0xc]
call fcn.0050eff0
cmp word [esi + 0xa8], 0
mov dword [esp + 0x44], 2
je 0x517ae4
movzx eax, word [esi + 0xa8]
cmp ax, word [esp + 0x1c]
je 0x517ae4
push 1
movzx eax, ax
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov dword [esp + 0x2c], eax
call fcn.0050fec0
movzx eax, word [esi + 0xa8]
movzx edx, al
cmp dx, ax
jne 0x517abc
mov al, byte [esi + 0xa8]
mov byte [esp + 0x14], al
jmp 0x517ac1
mov byte [esp + 0x14], 0
push 1
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0050f170
mov ecx, esi
call fcn.005139a0
cmp word [esi + 0xa8], 0
jne 0x517a7c
mov ecx, esi
call fcn.005139a0
lea ecx, [esp + 0x28]
call fcn.0050f030
lea edx, [esp + 0x20]
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0050f060
add esp, 8
test eax, eax
je 0x517b32
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp byte [ecx], al
sete al
test eax, eax
je 0x517b32
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [edi + 4], eax
mov ecx, ebp
mov dword [edx + 4], eax
call fcn.00513110
lea ebp, [ebx + 4]
push edi
mov ecx, ebp
call fcn.0050eba0
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
push ecx
mov ecx, esi
call fcn.00516c20
push eax
mov ecx, ebp
call fcn.0050eba0
mov edx, dword [esp + 0x18]
push edx
mov ecx, ebp
call fcn.0050eba0
mov edi, dword [esp + 0x24]
push 0
push edi
lea ecx, [esi + 0x50]
call fcn.0050f7d0
mov eax, dword [esi + 0x5c]
mov dword [eax + edi*4], ebx
mov edi, ebx
jmp 0x51810f
mov ecx, esi
call fcn.005139a0
push 8
call fcn.005645f4
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x44], 3
test edi, edi
je 0x517bb6
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
push edx
mov ecx, esi
call fcn.00516c20
push eax
mov ecx, edi
call fcn.0050f860
jmp 0x517bb8
xor eax, eax
push eax
mov ecx, esi
mov dword [esp + 0x48], 0xffffffff
call fcn.0050ec20
mov ecx, esi
mov edi, eax
call fcn.005139a0
mov eax, edi
jmp 0x518341
mov ecx, esi
call fcn.005139a0
cmp word [esi + 0xa8], di
je 0x517c14
jmp 0x517bf0
movzx eax, word [esi + 0xa8]
push eax
call fcn.005692e4
add esp, 4
test eax, eax
je 0x517c14
mov ecx, esi
call fcn.005139a0
cmp word [esi + 0xa8], di
jne 0x517bf0
movzx eax, word [esi + 0xa8]
cmp ax, 0x3c
je 0x517cf7
cmp ax, 0x27
je 0x517cf7
lea ecx, [esp + 0x28]
call fcn.0050eff0
cmp word [esi + 0xa8], 0
mov dword [esp + 0x44], 5
je 0x517c99
lea ebx, [ebx]
movzx eax, word [esi + 0xa8]
cmp ax, 0x29
je 0x517c99
movzx ecx, al
cmp cx, ax
jne 0x517c71
mov dl, byte [esi + 0xa8]
mov byte [esp + 0x4c], dl
jmp 0x517c76
mov byte [esp + 0x4c], 0
push 1
push 1
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x34]
call fcn.0050f170
mov ecx, esi
call fcn.005139a0
cmp word [esi + 0xa8], 0
jne 0x517c50
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0
call fcn.0050f030
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], eax
call fcn.0050f060
push 0x20
call fcn.005645f4
add esp, 0xc
test eax, eax
je 0x517ce6
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.0050ffe0
push eax
mov ecx, esi
call fcn.0050ec20
mov edi, eax
jmp 0x518106
xor eax, eax
push eax
mov ecx, esi
call fcn.0050ec20
mov edi, eax
jmp 0x518106
xor edx, edx
cmp ax, 0x3c
setne dl
push 0x20
dec edx
and edx, 0x17
add edx, 0x27
movzx ebx, dx
call fcn.005645f4
add esp, 4
test eax, eax
je 0x517d23
push 0xfffffffffffffffd
mov ecx, eax
call fcn.0050ffe0
jmp 0x517d25
xor eax, eax
push eax
mov ecx, esi
call fcn.0050ec20
mov ecx, esi
mov edi, eax
call fcn.005139a0
lea ecx, [esp + 0x28]
lea ebp, [edi + 0xc]
call fcn.0050eff0
cmp word [esi + 0xa8], 0
mov dword [esp + 0x44], 4
je 0x517dba
movzx eax, word [esi + 0xa8]
cmp ax, bx
je 0x517dba
push 1
movzx eax, ax
push 1
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebp
mov dword [esp + 0x58], eax
call fcn.0050fec0
movzx eax, word [esi + 0xa8]
movzx edx, al
cmp dx, ax
jne 0x517d92
mov al, byte [esi + 0xa8]
mov byte [esp + 0x4c], al
jmp 0x517d97
mov byte [esp + 0x4c], 0
push 1
push 1
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x34]
call fcn.0050f170
mov ecx, esi
call fcn.005139a0
cmp word [esi + 0xa8], 0
jne 0x517d54
mov ecx, esi
call fcn.005139a0
lea ecx, [esp + 0x28]
call fcn.0050f030
lea edx, [esp + 0x24]
mov dword [esp + 0x4c], eax
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0050f060
add esp, 8
test eax, eax
je 0x518106
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp byte [ecx], al
sete al
test eax, eax
je 0x518106
mov edx, dword [esp + 0x24]
mov ecx, ebp
mov dword [edi + 8], edx
call fcn.00513110
jmp 0x518106
push 0x28
call fcn.005645f4
add esp, 4
test eax, eax
je 0x517e25
mov ecx, eax
call fcn.005100a0
jmp 0x517e27
xor eax, eax
push eax
mov ecx, esi
call fcn.0050ec20
mov edi, eax
mov eax, 0x3f
lea ecx, [esp + 0x28]
mov word [esp + 0x28], ax
xor eax, eax
push ecx
lea ecx, [esi + 0xb8]
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.0050eb70
mov ecx, esi
test eax, eax
je 0x517e73
mov ebp, ebx
push ebp
call fcn.00517800
mov dword [edi + 0x1c], eax
jmp 0x517faa
call fcn.005139a0
mov ebp, dword [esi + 0xb0]
push 0xc
call fcn.005645f4
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], 6
test ebx, ebx
je 0x517eb4
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
push 1
push eax
mov ecx, esi
call fcn.00516c20
push eax
mov ecx, ebx
call fcn.0050f650
jmp 0x517eb6
xor eax, eax
push eax
mov ecx, esi
call fcn.0050ec20
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0xb0]
sub ecx, ebp
push 1
lea ebx, [esi + 0x8c]
push ecx
mov ecx, ebx
call fcn.0050eed0
lea edx, [eax + ebp*2]
push edx
lea ecx, [edi + 8]
call fcn.0050fec0
lea ecx, [esp + 0x28]
call fcn.0050eff0
cmp ebp, dword [esi + 0xb0]
mov dword [esp + 0x44], 7
jge 0x517f41
mov edi, edi
cmp ebp, dword [ebx + 8]
jl 0x517f09
xor eax, eax
jmp 0x517f10
mov eax, dword [ebx + 4]
movzx eax, word [eax + ebp*2]
mov ecx, 0xff
and cx, ax
cmp cx, ax
setne dl
dec dl
push 1
and dl, al
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x20], dl
call fcn.0050f170
inc ebp
cmp ebp, dword [esi + 0xb0]
jl 0x517f00
lea ecx, [esp + 0x28]
call fcn.0050f030
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
call fcn.0050f060
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x517f86
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp byte [ecx], al
sete al
test eax, eax
je 0x517f86
mov edx, dword [esp + 0x24]
mov dword [edi + 4], edx
mov dword [edi + 0x1c], 0
jmp 0x517f92
push edi
lea ecx, [esi + 0x78]
mov dword [edi + 4], ebx
call fcn.005100c0
mov ecx, esi
call fcn.005139a0
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], ebx
call fcn.0050e420
mov ebp, dword [esp + 0x4c]
mov eax, dword [ebp]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov dword [esp + 0x50], eax
call fcn.00516980
mov dword [edi + 0x20], eax
cmp word [esi + 0xa8], 0x7c
jne 0x517fed
mov ecx, esi
call fcn.005139a0
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.00516c20
mov ecx, esi
mov dword [edi + 0x24], eax
call fcn.005139a0
mov eax, edi
jmp 0x518341
mov ecx, esi
mov dword [edi + 0x24], 0
call fcn.005139a0
mov eax, edi
jmp 0x518341
test cx, cx
je 0x518034
jmp 0x518010
movzx eax, word [esi + 0xa8]
push eax
call fcn.005692e4
add esp, 4
test eax, eax
je 0x518034
mov ecx, esi
call fcn.005139a0
cmp word [esi + 0xa8], di
jne 0x518010
movzx eax, word [esi + 0xa8]
cmp ax, 0x30
jb 0x51812e
cmp ax, 0x39
ja 0x51812e
lea ecx, [esp + 0x28]
call fcn.0050eff0
cmp word [esi + 0xa8], 0
mov dword [esp + 0x44], 8
je 0x5180b9
lea ebx, [ebx]
movzx eax, word [esi + 0xa8]
cmp ax, 0x29
je 0x5180b9
movzx ecx, al
cmp cx, ax
jne 0x518091
mov dl, byte [esi + 0xa8]
mov byte [esp + 0x4c], dl
jmp 0x518096
mov byte [esp + 0x4c], 0
push 1
push 1
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x34]
call fcn.0050f170
mov ecx, esi
call fcn.005139a0
cmp word [esi + 0xa8], 0
jne 0x518070
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0
call fcn.0050f030
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], eax
call fcn.0050f060
push 0x20
call fcn.005645f4
add esp, 0xc
test eax, eax
je 0x5180fb
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, eax
call fcn.0050ffe0
mov edi, eax
jmp 0x5180fd
xor edi, edi
push edi
lea ecx, [esi + 0x14]
call fcn.0050eba0
push edi
lea ecx, [esi + 0x3c]
call fcn.00510050
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], 0xffffffff
call fcn.0050e420
mov ecx, esi
call fcn.005139a0
mov eax, edi
jmp 0x518341
mov edx, dword [esp + 0x4c]
mov ebx, dword [edx]
mov ebp, 0x28
lea esp, [esp]
cmp word [esi + 0xa8], 0
mov edx, 1
jne 0x51815b
cmp dword [esi + 0xac], edx
je 0x5181e2
movzx ecx, word [esi + 0xa8]
cmp cx, 0x3a
je 0x5181e2
cmp cx, 0x29
je 0x5181e2
cmp word [esi + 0xa8], bp
jne 0x51817f
cmp dword [esi + 0xac], edx
je 0x5181e2
movzx ecx, cx
add ecx, 0xffffffd3
xor eax, eax
cmp ecx, 0x46
ja case.0x518193.46
movzx ecx, byte [ecx + 0x5183c8]
jmp dword [ecx*4 + 0x5183b0]
mov eax, 8
test edi, edi
je 0x5181d4
not eax
mov ecx, esi
and ebx, eax
call fcn.005139a0
jmp 0x518140
mov eax, edx
jmp case.0x518193.46
mov eax, 2
jmp case.0x518193.46
mov eax, 4
jmp case.0x518193.46
not eax
mov ecx, esi
mov edi, edx
and ebx, eax
call fcn.005139a0
jmp 0x518140
mov ecx, esi
or ebx, eax
call fcn.005139a0
jmp 0x518140
movzx eax, word [esi + 0xa8]
cmp ax, 0x3a
je 0x518225
cmp word [esi + 0xa8], bp
jne 0x518200
cmp dword [esi + 0xac], edx
je 0x51821f
mov edx, dword [esp + 0x4c]
push 0
mov ecx, esi
mov dword [edx], ebx
call fcn.00513e80
mov ecx, esi
mov edi, eax
call fcn.005139a0
mov eax, edi
jmp 0x518341
cmp ax, 0x3a
jne 0x51822c
mov ecx, esi
call fcn.005139a0
push ebx
mov ecx, esi
call fcn.00516c20
mov edi, eax
mov ecx, esi
call fcn.005139a0
mov eax, edi
jmp 0x518341
push 0x1c
call fcn.005645f4
add esp, 4
test eax, eax
je 0x518267
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
and edx, 0x10
push edx
mov ecx, eax
call fcn.00512200
mov ebp, eax
jmp 0x518269
xor ebp, ebp
lea ecx, [esi + 0x14]
push ebp
call fcn.0050eba0
inc dword [esi + 8]
mov ebx, dword [esi + 8]
push 0x20
call fcn.005645f4
add esp, 4
test eax, eax
je 0x5182a1
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
shr edx, 4
and edx, 1
push edx
push ebx
mov ecx, eax
call fcn.0050ff60
mov dword [esp + 0x1c], eax
jmp 0x5182a9
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esi + 0x14]
call fcn.0050eba0
mov ecx, dword [esp + 0x1c]
lea edi, [ebp + 4]
push ecx
mov ecx, edi
call fcn.0050eba0
mov edx, dword [esp + 0x4c]
mov eax, dword [edx]
push eax
mov ecx, esi
call fcn.00516c20
push eax
mov ecx, edi
call fcn.0050eba0
push 0x20
call fcn.005645f4
add esp, 4
test eax, eax
je 0x518306
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
shr edx, 4
not edx
and edx, 1
push edx
push ebx
mov ecx, eax
call fcn.0050ff60
mov dword [esp + 0x4c], eax
jmp 0x51830e
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esi + 0x14]
call fcn.0050eba0
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, edi
call fcn.0050eba0
push 0
push ebx
lea ecx, [esi + 0x28]
call fcn.0050e890
mov edx, dword [esi + 0x34]
mov ecx, esi
mov dword [edx + ebx*4], ebp
call fcn.005139a0
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4