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

Disassembly:
mov ecx, dword [0x8cbf38]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x10]
cmp eax, dword [ecx + 8]
jbe 0x517f6a
sub esp, 0x90
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
lea eax, [0x517f80]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x8c], eax
test byte [eax], al
mov dword [esp], eax
lea ecx, [esp + 0x88]
mov dword [esp + 4], ecx
call fcn.004da0c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x517b91
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
test ecx, ecx
je 0x517b6d
mov ebx, dword [esp + 0x24]
lea ebp, [0x701834]
cmp ebx, ebp
jne 0x517b67
mov dword [esp + 0x7c], edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
lea ecx, [0x640f00]
mov dword [esp], ecx
call fcn.0040fcf0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [0x8cc0e0]
test ecx, ecx
jne 0x517b2a
mov ecx, dword [esp + 0x74]
jmp 0x517b35
call fcn.0046beb0
mov ecx, dword [esp + 0x74]
mov dword [edi], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 8], ecx
mov ecx, dword [0x8cc0e0]
test ecx, ecx
jne 0x517b51
mov ecx, dword [esp + 0x7c]
jmp 0x517b5c
call fcn.0046beb0
mov ecx, dword [esp + 0x7c]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x701820]
jmp 0x517b71
mov ecx, eax
mov eax, edx
jmp 0x517b71
mov ecx, eax
mov eax, edx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add esp, 0x90
ret
mov dword [esp + 0x38], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x94]
mov ebp, dword [eax + 0x138]
mov dword [esp + 0x30], ebp
cmp ebp, 2
je 0x517bbf
cmp ebp, 3
xchg esi, ebx
setne bl
xchg esi, ebx
jmp 0x517bc1
xor esi, esi
xchg esi, eax
mov byte [esp + 0x2f], al
xchg esi, eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x134]
mov dword [esp + 0x4c], edx
mov ebx, dword [eax + 0x144]
mov dword [esp + 0x44], ebx
mov ebp, dword [eax + 0x140]
mov dword [esp + 0x60], ebp
lea edi, [0x653040]
mov dword [esp], edi
call fcn.0040fcf0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x30]
cmp ecx, 1
sete dl
mov byte [eax + 0x12d], dl
movzx edx, byte [esp + 0x2f]
mov byte [eax + 0x12e], dl
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x134], edx
mov dword [eax + 0x138], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x144], ecx
mov ecx, dword [0x8cc0e0]
test ecx, ecx
jne 0x517c4b
mov ecx, dword [esp + 0x60]
jmp 0x517c5f
call fcn.0046bec0
mov ecx, dword [esp + 0x60]
mov dword [edi], ecx
mov edx, dword [eax + 0x140]
mov dword [edi + 4], edx
mov dword [esp + 0x70], eax
mov dword [eax + 0x140], ecx
mov dword [esp], eax
call fcn.00516d80
mov eax, dword [esp + 4]
test eax, eax
jne 0x517f13
mov dword [esp + 0x68], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x40]
test edx, edx
jbe 0x517f60
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.004b8750
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.004b4f80
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 4]
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 8]
mov dword [esp + 0x64], edx
mov dword [esp], eax
call fcn.004b4f80
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x134]
mov edx, dword [esp + 4]
mov dword [esp + 0x80], edx
mov ebx, dword [esp + 8]
mov dword [esp + 0x54], ebx
cmp ecx, 1
jne 0x517d63
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x517d49
lea ecx, [0x6be498]
jmp 0x517da0
cmp ecx, 2
jne 0x517d56
lea ecx, [0x6be49c]
jmp 0x517da0
cmp ecx, 5
jne 0x517d9a
lea ecx, [0x6be4a0]
jmp 0x517da0
cmp ecx, 2
je 0x517d6d
cmp ecx, 0x17
jne 0x517d9a
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x517d80
lea ecx, [0x6be490]
jmp 0x517da0
cmp ecx, 2
jne 0x517d8d
lea ecx, [0x6be494]
jmp 0x517da0
cmp ecx, 3
jne 0x517d9a
lea ecx, [0x6be48c]
jmp 0x517da0
lea ecx, [0x6be444]
mov eax, dword [ecx]
mov ebx, dword [esp + 0x84]
mov dword [esp], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov edx, ecx
call eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x134]
cmp ecx, 1
jne 0x517df4
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x517dda
lea ecx, [0x6be498]
jmp 0x517e31
cmp ecx, 2
jne 0x517de7
lea ecx, [0x6be49c]
jmp 0x517e31
cmp ecx, 5
jne 0x517e2b
lea ecx, [0x6be4a0]
jmp 0x517e31
cmp ecx, 2
je 0x517dfe
cmp ecx, 0x17
jne 0x517e2b
mov ecx, dword [eax + 0x138]
cmp ecx, 1
jne 0x517e11
lea ecx, [0x6be490]
jmp 0x517e31
cmp ecx, 2
jne 0x517e1e
lea ecx, [0x6be494]
jmp 0x517e31
cmp ecx, 3
jne 0x517e2b
lea ecx, [0x6be48c]
jmp 0x517e31
lea ecx, [0x6be448]
mov eax, dword [ecx]
mov ebx, dword [esp + 8]
mov dword [esp + 0x84], ebx
mov ebp, dword [esp + 0xc]
mov dword [esp + 0x6c], ebp
mov esi, dword [esp + 0x80]
mov dword [esp], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 4], esi
mov edx, ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x70]
mov dword [ebp + 0x148], ebx
mov ebx, dword [0x8cc0e0]
test ebx, ebx
jne 0x517e85
mov edx, dword [esp + 0x6c]
jmp 0x517e99
call fcn.0046bec0
mov edx, dword [esp + 0x6c]
mov dword [edi], edx
mov ebx, dword [ebp + 0x14c]
mov dword [edi + 4], ebx
mov dword [ebp + 0x14c], edx
mov dword [ebp + 0x150], ecx
mov ecx, dword [0x8cc0e0]
test ecx, ecx
je 0x517ebf
call fcn.0046bec0
mov dword [edi], eax
mov ecx, dword [ebp + 0x154]
mov dword [edi + 4], ecx
mov dword [ebp + 0x154], eax
lea eax, [0x662000]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [0x6286a0]
mov dword [esp + 8], eax
lea eax, [0x6be440]
mov dword [esp + 0xc], eax
call fcn.0041ae70
mov eax, dword [esp + 0x70]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
add esp, 0x90
ret
mov eax, dword [esp + 4]
mov dword [esp + 0x84], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x94]
mov dword [esp], edx
call fcn.00515cc0
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x84]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xa0], eax
add esp, 0x90
ret
xor eax, eax
mov ecx, eax
call fcn.0046bf30
nop
call fcn.0046aab0
jmp fcn.00517a50