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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi + 8]
mov dword [ebp - 8], eax
test al, 0x40
je 0x5171ab
mov eax, dword [ebp + 8]
cmp eax, dword [ebx]
jb 0x51718a
push eax
mov ecx, ebx
call fcn.00473ee0
mov esi, dword [edi + 0x40]
mov edi, dword [edi + 0x44]
push eax
push 9
call fcn.00470d50
add esp, 8
mov dword [eax], esi
lea esi, [eax + 8]
mov dword [eax + 4], edi
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
jmp 0x5171ae
mov esi, dword [ebp + 8]
test al, al
jns 0x5171de
cmp esi, dword [ebx]
jb 0x5171c0
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov edi, dword [edi + 0x48]
push esi
push 0x10
call fcn.00470d50
push eax
mov eax, edi
cdq
push edx
push eax
call fcn.00470ec0
mov esi, eax
add esp, 0x14
mov eax, dword [ebp - 8]
test eax, 0x100
je 0x517210
cmp esi, dword [ebx]
jb 0x5171f3
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov edi, dword [ebp - 4]
push esi
push 0x18
mov edi, dword [edi + 0x4c]
call fcn.00470d50
push eax
push edi
call fcn.00470d50
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 8]
test eax, 0x2000000
je 0x51724a
cmp esi, dword [ebx]
jb 0x517225
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0x51
mov edi, dword [eax + 0x98]
mov ebx, dword [eax + 0x9c]
call fcn.00470d50
add esp, 8
mov dword [eax], edi
lea esi, [eax + 8]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 8]
test eax, 0x4000000
je 0x517287
mov ebx, dword [ebp + 0xc]
cmp esi, dword [ebx]
jb 0x517262
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0x59
mov edi, dword [eax + 0xa0]
mov ebx, dword [eax + 0xa4]
call fcn.00470d50
add esp, 8
mov dword [eax], edi
lea esi, [eax + 8]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
test al, 1
je 0x5172a7
mov eax, dword [edi + 0x28]
mov ecx, ebx
push esi
and eax, 0xfffffffe
push eax
push 0xc
call fcn.004c95f0
mov esi, eax
mov eax, dword [ebp - 8]
test eax, 0x8000000
je 0x5172dd
cmp esi, dword [ebx]
jb 0x5172bc
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov edi, dword [edi + 0xa8]
push esi
push 0x68
call fcn.00470d50
push eax
mov eax, edi
cdq
push edx
push eax
call fcn.00470ec0
mov esi, eax
add esp, 0x14
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
test al, 2
je 0x5172f7
mov eax, dword [edi + 0x2c]
mov ecx, ebx
push esi
and eax, 0xfffffffe
push eax
push 0xe
call fcn.004c95f0
mov esi, eax
cmp dword [edi + 0xbc], 0xf
jne 0x517335
cmp esi, dword [ebx]
jb 0x51731b
push esi
mov ecx, ebx
call fcn.00473ee0
cmp dword [edi + 0xbc], 0xf
mov esi, eax
je 0x51731b
xor edi, edi
jmp 0x517321
mov edi, dword [edi + 0xb8]
push esi
push 0x78
call fcn.00470d50
push eax
push edi
call fcn.00470d50
add esp, 0x10
mov esi, eax
mov edi, dword [ebp - 8]
test edi, 0x200
je 0x51736e
cmp esi, dword [ebx]
jb 0x51734e
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov edi, dword [ebp - 4]
push esi
push 0x80
mov edi, dword [edi + 0x50]
call fcn.00470d50
push eax
push edi
call fcn.00470d50
mov edi, dword [ebp - 8]
add esp, 0x10
mov esi, eax
test edi, 0x10000000
je 0x5173ab
cmp esi, dword [ebx]
jb 0x517384
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0x88
mov edi, dword [eax + 0xac]
call fcn.00470d50
push eax
mov eax, edi
cdq
push edx
push eax
call fcn.00470ec0
mov edi, dword [ebp - 8]
add esp, 0x14
mov esi, eax
test edi, 0x20000000
je 0x5173eb
cmp esi, dword [ebx]
jb 0x5173c1
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0x90
mov ebx, dword [eax + 0xb0]
mov edi, dword [eax + 0xb4]
call fcn.00470d50
push eax
push edi
push ebx
call fcn.00470ec0
mov edi, dword [ebp - 8]
add esp, 0x14
mov esi, eax
mov ebx, dword [ebp + 0xc]
test edi, 0x400
je 0x517424
cmp esi, dword [ebx]
jb 0x517404
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0x98
mov edi, dword [eax + 0x54]
call fcn.00470d50
push eax
push edi
call fcn.00470d50
mov edi, dword [ebp - 8]
add esp, 0x10
mov esi, eax
test edi, 0x1000
je 0x51745a
cmp esi, dword [ebx]
jb 0x51743a
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0xa0
mov edi, dword [eax + 0x60]
call fcn.00470d50
push eax
push edi
call fcn.00470d50
mov edi, dword [ebp - 8]
add esp, 0x10
mov esi, eax
test edi, 0x800
je 0x517494
cmp esi, dword [ebx]
jb 0x517470
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0xa8
mov ebx, dword [eax + 0x58]
mov edi, dword [eax + 0x5c]
call fcn.00470d50
push eax
push edi
push ebx
call fcn.00470ec0
mov edi, dword [ebp - 8]
add esp, 0x14
mov esi, eax
mov ebx, dword [ebp + 0xc]
test edi, 0x2000
je 0x5174cd
cmp esi, dword [ebx]
jb 0x5174ad
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0xb0
mov edi, dword [eax + 0x64]
call fcn.00470d50
push eax
push edi
call fcn.00470d50
mov edi, dword [ebp - 8]
add esp, 0x10
mov esi, eax
test edi, 0x8000
je 0x517507
cmp esi, dword [ebx]
jb 0x5174e3
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0xb8
mov bl, byte [eax + 0x6c]
call fcn.00470d50
push eax
xor eax, eax
test bl, bl
setne al
push eax
call fcn.00470d50
add esp, 0x10
mov esi, eax
mov ebx, dword [ebp + 0xc]
test edi, 0x4000
je 0x517544
cmp esi, dword [ebx]
jb 0x517520
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0xc0
mov edi, dword [eax + 0x68]
call fcn.00470d50
push eax
mov eax, edi
cdq
push edx
push eax
call fcn.00470ec0
mov edi, dword [ebp - 8]
add esp, 0x14
mov esi, eax
test edi, 0x20000
je 0x51757a
cmp esi, dword [ebx]
jb 0x51755a
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0xc8
mov edi, dword [eax + 0x70]
call fcn.00470d50
push eax
push edi
call fcn.00470d50
mov edi, dword [ebp - 8]
add esp, 0x10
mov esi, eax
test edi, 0x10000
je 0x5175b4
cmp esi, dword [ebx]
jb 0x517590
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0xd0
mov bl, byte [eax + 0x6d]
call fcn.00470d50
push eax
xor eax, eax
test bl, bl
setne al
push eax
call fcn.00470d50
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0x10
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00454240
mov ebx, dword [ebp + 0xc]
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
test ecx, ecx
jle 0x517617
cmp esi, dword [ebx]
jb 0x5175e6
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
push eax
call fcn.0046f2d0
push esi
push 0xd8
mov edi, dword [eax]
call fcn.00470d50
push eax
push edi
call fcn.00470d50
mov esi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 0x10]
jl 0x5175d5
mov edi, dword [ebp - 8]
test edi, 0x40000
je 0x51764a
cmp esi, dword [ebx]
jb 0x51762d
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0xe0
mov edi, dword [eax + 0x74]
call fcn.00470d50
push eax
push edi
call fcn.00470d50
add esp, 0x10
mov esi, eax
mov edi, dword [ebp - 4]
cmp dword [edi + 0xbc], 0x1d
jne 0x51766c
mov eax, dword [edi + 0xb8]
mov ecx, ebx
push esi
and eax, 0xfffffffe
push eax
push 0x1d
call fcn.004c95f0
mov esi, eax
mov eax, dword [ebp - 8]
test eax, 0x80000
je 0x5176a4
cmp esi, dword [ebx]
jb 0x517684
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov edi, dword [edi + 0x78]
push esi
push 0xf8
call fcn.00470d50
push eax
push edi
call fcn.00470d50
mov edi, dword [ebp - 4]
mov esi, eax
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, 0x100000
je 0x5176d6
cmp esi, dword [ebx]
jb 0x5176b9
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov edi, dword [edi + 0x7c]
push esi
push 0x100
call fcn.00470d50
push eax
push edi
call fcn.00470d50
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 8]
test eax, 0x1000000
je 0x517712
cmp esi, dword [ebx]
jb 0x5176eb
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0x108
mov edi, dword [eax + 0x90]
call fcn.00470d50
push eax
mov eax, edi
cdq
push edx
push eax
call fcn.00470ec0
mov esi, eax
add esp, 0x14
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
test al, 4
je 0x51772f
mov eax, dword [edi + 0x30]
mov ecx, ebx
push esi
and eax, 0xfffffffe
push eax
push 0x22
call fcn.004c95f0
mov esi, eax
mov eax, dword [ebp - 8]
test eax, 0x400000
je 0x517764
cmp esi, dword [ebx]
jb 0x517744
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov edi, dword [edi + 0x88]
push esi
push 0x118
call fcn.00470d50
push eax
push edi
call fcn.00470d50
mov esi, eax
add esp, 0x10
mov eax, dword [ebp - 8]
test eax, 0x200000
je 0x5177a3
cmp esi, dword [ebx]
jb 0x517779
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0x120
mov ebx, dword [eax + 0x80]
mov edi, dword [eax + 0x84]
call fcn.00470d50
push eax
push edi
push ebx
call fcn.00470ec0
mov esi, eax
add esp, 0x14
mov eax, dword [ebp - 8]
test al, 0x20
je 0x517866
mov ebx, dword [ebp + 0xc]
cmp esi, dword [ebx]
jb 0x5177bc
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0x12a
mov edi, dword [eax + 0x3c]
mov dword [ebp + 8], edi
call fcn.00470d50
mov ecx, dword [edi + 0xc]
push eax
push ecx
call fcn.00470d50
mov esi, eax
add esp, 0x10
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
test al, 1
je 0x51781b
cmp esi, dword [ebx]
jb 0x5177f7
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov ebx, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
push esi
push 8
call fcn.00470d50
push eax
push edi
push ebx
call fcn.00470ec0
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov edi, dword [ebp + 8]
add esp, 0x14
mov eax, dword [ebp - 0x10]
test al, 2
je 0x517844
cmp esi, dword [ebx]
jb 0x51782d
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov edi, dword [edi + 0x18]
push esi
push 0x10
call fcn.00470d50
push eax
push edi
call fcn.00470d50
add esp, 0x10
mov esi, eax
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x517863
mov eax, dword [eax + 4]
and eax, 0xfffffffc
push ebx
add eax, 4
push esi
push eax
call fcn.00590ae0
add esp, 0xc
mov esi, eax
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
test eax, 0x800000
je 0x5178a5
cmp esi, dword [ebx]
jb 0x51787e
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp - 4]
push esi
push 0x130
mov edi, dword [eax + 0x8c]
call fcn.00470d50
push eax
mov eax, edi
cdq
push edx
push eax
call fcn.00470ec0
mov esi, eax
add esp, 0x14
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
test al, 8
je 0x5178c2
mov eax, dword [edi + 0x34]
mov ecx, ebx
push esi
and eax, 0xfffffffe
push eax
push 0x27
call fcn.004c95f0
mov esi, eax
mov eax, dword [ebp - 8]
test al, 0x10
je 0x5178d9
mov eax, dword [edi + 0x38]
mov ecx, ebx
push esi
and eax, 0xfffffffe
push eax
push 0x28
call fcn.004c95f0
mov esi, eax
lea eax, [edi + 0x1c]
mov ecx, eax
mov dword [ebp + 8], eax
call fcn.00454240
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
jle 0x51793a
cmp esi, dword [ebx]
jb 0x517905
push esi
mov ecx, ebx
call fcn.00473ee0
mov esi, eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0046f2d0
push esi
push 0x148
mov edi, dword [eax]
call fcn.00470d50
push eax
mov eax, edi
cdq
push edx
push eax
call fcn.00470ec0
mov esi, eax
add esp, 0x14
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp - 0x10]
jl 0x5178f4
mov edi, dword [ebp - 4]
test byte [edi + 4], 1
je 0x51795d
mov eax, dword [edi + 4]
and eax, 0xfffffffc
push ebx
add eax, 4
push esi
push eax
call fcn.00590ae0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8