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

Disassembly:
mov ecx, dword [0x6cfe90]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x78]
cmp eax, dword [ecx + 8]
jbe 0x518464
sub esp, 0xf8
mov edx, dword [esp + 0xfc]
movzx ebx, byte [edx + 0xa8]
test bl, bl
je 0x517a77
mov eax, 1
jmp 0x517a8b
mov dword [esp], edx
call fcn.0051b580
movzx eax, byte [esp + 4]
mov edx, dword [esp + 0xfc]
test al, al
je 0x517ab1
mov ecx, dword [edx + 0x98]
mov eax, dword [edx + 0xa0]
cmp ecx, eax
jbe 0x51845e
mov ebx, dword [edx + 0x94]
lea ebp, [eax + eax*8]
lea ebx, [ebx + ebp*8]
jmp 0x517ab3
xor ebx, ebx
test ebx, ebx
je 0x517ac1
xor eax, eax
xor ecx, ecx
xor ebp, ebp
xor esi, esi
jmp 0x517add
mov byte [esp + 0x108], 0
add esp, 0xf8
ret
mov ebp, ebx
mov ebx, esi
mov esi, edx
mov edx, dword [esp + 0xfc]
mov dword [esp + 0xdc], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov edi, dword [ebx]
cmp edi, 3
je 0x517b95
mov dword [esp + 0x5c], eax
cmp edi, 4
jne 0x517cc7
lea edi, [esp + 0xc0]
xor eax, eax
call fcn.00464caa
mov ecx, dword [ebx + 0x20]
mov edi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc8], eax
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x40]
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edi
lea edi, [esp + 0xa8]
mov eax, esi
lea esi, [esp + 0xc0]
call fcn.00465184
mov ecx, dword [ebx + 4]
mov dword [esp + 0x58], ecx
mov esi, dword [ebx + 8]
mov dword [esp + 0x54], esi
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x50], ebx
mov edi, dword [edx + 0xf0]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
jmp 0x5180c1
test eax, eax
jne 0x517d24
cmp byte [ebx + 0x45], 1
jne 0x517cd8
cmp byte [ebx + 0x46], 1
jne 0x517cd8
mov dword [esp + 0xd8], ebx
lea eax, [0x561c80]
mov dword [esp], eax
call fcn.0040ca70
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xd8]
movzx edx, byte [ecx + 0x45]
mov byte [eax], dl
movzx ecx, byte [ecx + 0x46]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0xdc]
nop
mov ebp, dword [esp + 0xfc]
mov byte [ebp + 0xa8], 0
inc dword [ebp + 0xa4]
mov esi, dword [ebp + 0x98]
mov edi, dword [ebp + 0xa0]
cmp esi, edi
jbe 0x517d88
mov esi, dword [ebp + 0x94]
lea edi, [edi + edi*8]
lea esi, [esi + edi*8]
cmp dword [esi], 2
xchg esi, ebx
sete bl
xchg esi, ebx
xchg esi, eax
mov byte [ebp + 0x8d], al
xchg esi, eax
inc dword [ebp + 0xa0]
movzx esi, byte [ebp + 0xa8]
xchg esi, eax
test al, al
xchg esi, eax
je 0x517c4e
mov esi, 1
jmp 0x517c90
mov dword [esp + 0x48], ecx
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x44], edx
mov dword [esp], ebp
call fcn.0051b580
movzx eax, byte [esp + 4]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0xf0]
mov ebp, dword [esp + 0xfc]
mov esi, eax
mov eax, dword [esp + 0xf4]
xchg esi, eax
test al, al
xchg esi, eax
je 0x517cb8
mov esi, dword [ebp + 0x98]
mov edi, dword [ebp + 0xa0]
cmp edi, esi
jae 0x517d7f
mov esi, dword [ebp + 0x94]
lea edi, [edi + edi*8]
lea esi, [esi + edi*8]
jmp 0x517cba
xor esi, esi
test esi, esi
jne 0x517ad0
jmp 0x517d70
mov ebx, dword [0x68bf14]
mov dword [esp + 0x58], ebx
xor edi, edi
jmp 0x517daf
nop
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
mov dword [edx], 4
mov dword [edx + 8], 0x20
mov ebp, dword [0x6cff38]
test ebp, ebp
je 0x517d03
mov ebp, dword [edx + 4]
call fcn.00464ab0
mov dword [edi], ebp
lea ebp, [0x584744]
mov dword [edx + 4], ebp
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], ebx
mov dword [edx + 0x1c], ecx
mov byte [esp + 0x108], 0
add esp, 0xf8
ret
nop
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
mov ebx, dword [ebx + 8]
mov dword [edx], 4
mov dword [edx + 8], 0x1f
mov ebp, dword [0x6cff38]
test ebp, ebp
je 0x517d4f
mov ebp, dword [edx + 4]
call fcn.00464ab0
mov dword [edi], ebp
lea ebp, [0x5840e8]
mov dword [edx + 4], ebp
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], ebx
mov dword [edx + 0x1c], ecx
mov byte [esp + 0x108], 0
add esp, 0xf8
ret
mov byte [esp + 0x108], 0
add esp, 0xf8
ret
mov eax, edi
mov ecx, esi
call fcn.00464b30
mov eax, edi
mov ecx, esi
call fcn.00464b30
mov eax, dword [esp + 0x30]
lea edi, [eax + 1]
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0xdc]
mov esi, dword [esp + 0x20]
cmp edi, ebx
jge 0x517fbe
mov ebp, dword [0x68bf14]
cmp edi, ebp
jae 0x51809a
mov dword [esp + 0x30], edi
lea ebp, [edi + edi*2]
mov ecx, dword [0x68bf10]
lea ecx, [ecx + ebp*8]
mov ebp, edi
lea edi, [esp + 0x90]
mov esi, ecx
call fcn.00465184
mov ecx, dword [edx + 0xf0]
mov dword [esp + 0x54], ecx
xor esi, esi
jmp 0x518026
mov eax, dword [esp + 0x94]
mov dword [esp + 0x54], eax
lea ecx, [0x557560]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044b5b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xec], eax
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x50], ecx
lea edx, [0x557560]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044b5b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xe8], eax
lea edi, [esp + 0x60]
xor eax, eax
call fcn.00464caa
mov eax, dword [esp + 0xec]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x94]
cmp edx, ecx
jl 0x517e94
mov edx, ecx
mov ecx, dword [esp + 0x90]
cmp ecx, eax
je 0x517eaf
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004653a0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0xa0]
cmp ecx, edx
jg 0x517ec0
mov edx, ecx
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x9c]
cmp ecx, ebx
je 0x517edf
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004653a0
mov ecx, dword [esp + 0xfc]
mov edx, dword [ecx + 0xf4]
mov ebx, dword [ecx + 0xf0]
inc ebx
mov ebp, dword [ecx + 0xec]
cmp edx, ebx
jae 0x517f63
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x561ce0]
mov dword [esp + 0x10], eax
call fcn.0044b670
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xfc]
mov dword [ebx + 0xf4], eax
mov eax, dword [0x6cff38]
test eax, eax
je 0x517f52
call fcn.00464ac0
mov dword [edi], ecx
mov ebp, dword [ebx + 0xec]
mov dword [edi + 4], ebp
mov dword [ebx + 0xec], ecx
mov ebx, edx
mov ebp, ecx
mov ecx, dword [esp + 0xfc]
mov dword [ecx + 0xf0], ebx
mov edx, dword [0x6cff38]
lea ebx, [ebx + ebx*2]
lea edi, [ebp + ebx*8 - 0x18]
test edx, edx
je 0x517fa9
mov dword [esp + 0xf0], edi
lea eax, [0x561ce0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x60]
mov dword [esp + 8], eax
call fcn.004113a0
mov ecx, dword [esp + 0xfc]
mov edi, dword [esp + 0xf0]
lea esi, [esp + 0x60]
call fcn.00465184
mov edx, dword [esp + 0xfc]
jmp 0x517d91
mov edx, dword [esp + 0x100]
test edx, edx
je 0x517fe1
mov ebx, dword [0x6cff38]
test ebx, ebx
je 0x517fdf
call fcn.00464ac0
mov dword [edi], eax
mov ebx, dword [edx]
mov dword [edi + 4], ebx
mov dword [edx], eax
mov eax, dword [esp + 0x104]
test eax, eax
je 0x51800a
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov ecx, dword [0x6cff38]
test ecx, ecx
je 0x518008
call fcn.00464ac0
mov dword [edi], ebp
mov ecx, dword [eax]
mov dword [edi + 4], ecx
mov dword [eax], ebp
mov byte [esp + 0x108], 1
add esp, 0xf8
ret
inc esi
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x30]
cmp esi, ecx
jge 0x517df6
mov edi, dword [edx + 0xf0]
cmp esi, edi
jae 0x518091
mov edi, dword [esp + 0x94]
mov eax, dword [edx + 0xec]
lea ebx, [esi + esi*2]
lea ebp, [eax + ebx*8]
lea ebx, [eax + ebx*8]
cmp dword [ebp + 4], edi
je 0x518057
xor eax, eax
jmp 0x518088
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x90]
mov ecx, dword [ebx]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
call fcn.004030e0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xfc]
mov esi, dword [esp + 0x28]
test al, al
je 0x518019
jmp 0x517d91
mov eax, esi
mov ecx, edi
call fcn.00464b30
mov eax, edi
mov ecx, ebp
call fcn.00464b30
lea eax, [ebp + 1]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0xdc]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
cmp ebp, edi
jge 0x51817d
mov eax, dword [edx + 0xf0]
cmp ebp, eax
jae 0x518455
mov eax, dword [esp + 0xac]
mov ebx, dword [edx + 0xec]
lea esi, [ebp + ebp*2]
lea ecx, [ebx + esi*8]
lea ebx, [ebx + esi*8]
cmp dword [ecx + 4], eax
je 0x5180fb
xor eax, eax
jmp 0x518128
mov ecx, dword [esp + 0xa8]
mov edx, dword [ebx]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004030e0
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0xfc]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
test al, al
je 0x5180a3
nop
mov dword [edx], 4
mov dword [edx + 8], 0x1e
mov ecx, dword [0x6cff38]
test ecx, ecx
jne 0x51814c
cmp ebp, edi
jmp 0x51815a
mov ecx, dword [edx + 4]
mov eax, edi
call fcn.00464ab0
mov dword [edi], ecx
cmp ebp, eax
lea ecx, [0x583b1e]
mov dword [edx + 4], ecx
mov ebx, dword [esp + 0x58]
mov dword [edx + 0x14], ebx
mov ebx, dword [esp + 0x54]
mov dword [edx + 0x18], ebx
mov ebx, dword [esp + 0x50]
mov dword [edx + 0x1c], ebx
jmp 0x518362
mov eax, dword [esp + 0xac]
mov dword [esp + 0x58], eax
lea ecx, [0x557560]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044b5b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xec], eax
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x54], ecx
lea edx, [0x557560]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.0044b5b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xe8], eax
lea edi, [esp + 0x78]
xor eax, eax
call fcn.00464caa
mov eax, dword [esp + 0xec]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0xac]
cmp edx, ecx
jl 0x518227
mov edx, ecx
mov ecx, dword [esp + 0xa8]
cmp ecx, eax
je 0x518242
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004653a0
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0xb8]
cmp ecx, edx
jg 0x518256
mov edx, ecx
mov ecx, dword [esp + 0x84]
mov ebx, dword [esp + 0xb4]
cmp ecx, ebx
je 0x518278
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004653a0
mov ecx, dword [esp + 0xfc]
mov edx, dword [ecx + 0xf4]
mov ebx, dword [ecx + 0xf0]
inc ebx
mov ebp, dword [ecx + 0xec]
cmp edx, ebx
jae 0x5182fc
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x561ce0]
mov dword [esp + 0x10], eax
call fcn.0044b670
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0xfc]
mov dword [ebx + 0xf4], eax
mov eax, dword [0x6cff38]
test eax, eax
je 0x5182eb
call fcn.00464ac0
mov dword [edi], ecx
mov ebp, dword [ebx + 0xec]
mov dword [edi + 4], ebp
mov dword [ebx + 0xec], ecx
mov ebx, edx
mov ebp, ecx
mov ecx, dword [esp + 0xfc]
mov dword [ecx + 0xf0], ebx
mov edx, dword [0x6cff38]
lea ebx, [ebx + ebx*2]
lea edi, [ebp + ebx*8 - 0x18]
test edx, edx
je 0x518342
mov dword [esp + 0xe4], edi
lea eax, [0x561ce0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x78]
mov dword [esp + 8], eax
call fcn.004113a0
mov ecx, dword [esp + 0xfc]
mov edi, dword [esp + 0xe4]
lea esi, [esp + 0x78]
call fcn.00465184
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x4c]
cmp ecx, edx
lea ecx, [0x583b1e]
mov edx, dword [esp + 0xfc]
jl 0x518446
mov ebx, dword [esp + 0x20]
inc ebx
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
jb 0x51837e
mov eax, dword [esp + 0xdc]
jmp 0x5183c4
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x561ce0]
mov dword [esp + 0x10], eax
call fcn.0044b670
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xfc]
mov eax, ebp
mov ebp, ecx
lea ecx, [0x583b1e]
mov esi, dword [0x6cff38]
lea edi, [ebx + ebx*2]
lea edi, [eax + edi*8 - 0x18]
test esi, esi
je 0x51842b
mov dword [esp + 0xe0], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0xe4], edi
lea eax, [0x561ce0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0xc0]
mov dword [esp + 8], eax
call fcn.004113a0
mov eax, dword [esp + 0xe0]
lea ecx, [0x583b1e]
mov edx, dword [esp + 0xfc]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0xe4]
lea esi, [esp + 0xc0]
call fcn.00465184
mov ecx, ebp
mov edx, ebx
mov ebx, eax
mov eax, dword [esp + 0x5c]
jmp 0x517bed
mov byte [esp + 0x108], 0
add esp, 0xf8
ret
mov ecx, eax
mov eax, ebp
call fcn.00464b30
call fcn.00464b30
nop
call fcn.004636b0
jmp fcn.00517a40