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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 4], ebx
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
test al, 0x40
je 0x516b38
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp eax, dword [edi]
jb 0x516b1a
push eax
mov ecx, edi
call fcn.00473f20
mov esi, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
push eax
push 9
call fcn.00470d90
add esp, 8
mov dword [eax], esi
lea ebx, [eax + 8]
mov dword [eax + 4], edi
mov eax, dword [ebp - 8]
jmp 0x516b3b
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
test al, al
jns 0x516b77
cmp ebx, dword [edi]
jb 0x516b53
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov esi, dword [ebp - 4]
push ebx
push 0x10
mov esi, dword [esi + 0x40]
call fcn.00470d90
push eax
mov eax, esi
cdq
push edx
push eax
call fcn.00470f00
mov ebx, eax
add esp, 0x14
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
test eax, 0x100
je 0x516bac
cmp ebx, dword [edi]
jb 0x516b8c
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0x18
mov esi, dword [eax + 0x44]
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
test eax, 0x2000000
je 0x516be9
cmp ebx, dword [edi]
jb 0x516bc1
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0x51
mov esi, dword [eax + 0x90]
mov edi, dword [eax + 0x94]
call fcn.00470d90
add esp, 8
lea ebx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
test eax, 0x4000000
je 0x516c29
mov edi, dword [ebp + 0xc]
cmp ebx, dword [edi]
jb 0x516c01
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0x59
mov esi, dword [eax + 0x98]
mov edi, dword [eax + 0x9c]
call fcn.00470d90
add esp, 8
lea ebx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
test al, 1
je 0x516c4c
mov eax, dword [esi + 0x1c]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 0xc
call fcn.004c9250
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
test eax, 0x8000000
je 0x516c85
cmp ebx, dword [edi]
jb 0x516c61
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov esi, dword [esi + 0xa0]
push ebx
push 0x68
call fcn.00470d90
push eax
mov eax, esi
cdq
push edx
push eax
call fcn.00470f00
mov ebx, eax
add esp, 0x14
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
mov esi, dword [ebp - 4]
test al, 2
je 0x516ca2
mov eax, dword [esi + 0x20]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 0xe
call fcn.004c9250
mov ebx, eax
mov dword [ebp + 8], ebx
cmp dword [esi + 0xb4], 0xf
jne 0x516ce3
cmp ebx, dword [edi]
jb 0x516cc6
push ebx
mov ecx, edi
call fcn.00473f20
cmp dword [esi + 0xb4], 0xf
mov ebx, eax
je 0x516cc6
xor esi, esi
jmp 0x516ccc
mov esi, dword [esi + 0xb0]
push ebx
push 0x78
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov ebx, eax
add esp, 0x10
mov dword [ebp + 8], ebx
mov esi, dword [ebp - 8]
test esi, 0x200
je 0x516d1f
cmp ebx, dword [edi]
jb 0x516cfc
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0x80
mov esi, dword [eax + 0x48]
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov esi, dword [ebp - 8]
mov ebx, eax
add esp, 0x10
mov dword [ebp + 8], ebx
test esi, 0x10000000
je 0x516d5f
cmp ebx, dword [edi]
jb 0x516d35
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0x88
mov esi, dword [eax + 0xa4]
call fcn.00470d90
push eax
mov eax, esi
cdq
push edx
push eax
call fcn.00470f00
mov esi, dword [ebp - 8]
mov ebx, eax
add esp, 0x14
mov dword [ebp + 8], ebx
test esi, 0x20000000
je 0x516da2
cmp ebx, dword [edi]
jb 0x516d75
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0x90
mov edi, dword [eax + 0xa8]
mov esi, dword [eax + 0xac]
call fcn.00470d90
push eax
push esi
push edi
call fcn.00470f00
mov esi, dword [ebp - 8]
mov ebx, eax
add esp, 0x14
mov dword [ebp + 8], ebx
mov edi, dword [ebp + 0xc]
test esi, 0x400
je 0x516dde
cmp ebx, dword [edi]
jb 0x516dbb
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0x98
mov esi, dword [eax + 0x4c]
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov esi, dword [ebp - 8]
mov ebx, eax
add esp, 0x10
mov dword [ebp + 8], ebx
test esi, 0x1000
je 0x516e17
cmp ebx, dword [edi]
jb 0x516df4
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0xa0
mov esi, dword [eax + 0x58]
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov esi, dword [ebp - 8]
mov ebx, eax
add esp, 0x10
mov dword [ebp + 8], ebx
test esi, 0x800
je 0x516e54
cmp ebx, dword [edi]
jb 0x516e2d
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0xa8
mov edi, dword [eax + 0x50]
mov esi, dword [eax + 0x54]
call fcn.00470d90
push eax
push esi
push edi
call fcn.00470f00
mov esi, dword [ebp - 8]
mov ebx, eax
add esp, 0x14
mov dword [ebp + 8], ebx
mov edi, dword [ebp + 0xc]
test esi, 0x2000
je 0x516e90
cmp ebx, dword [edi]
jb 0x516e6d
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0xb0
mov esi, dword [eax + 0x5c]
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov esi, dword [ebp - 8]
mov ebx, eax
add esp, 0x10
mov dword [ebp + 8], ebx
test esi, 0x8000
je 0x516ed2
cmp ebx, dword [edi]
jb 0x516ea8
push ebx
mov ecx, edi
call fcn.00473f20
mov ecx, eax
jmp 0x516eab
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push ecx
push 0xb8
mov bl, byte [eax + 0x64]
call fcn.00470d90
push eax
xor eax, eax
test bl, bl
setne al
push eax
call fcn.00470d90
mov ebx, eax
add esp, 0x10
mov dword [ebp + 8], ebx
test esi, 0x4000
je 0x516f0f
cmp ebx, dword [edi]
jb 0x516ee8
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0xc0
mov esi, dword [eax + 0x60]
call fcn.00470d90
push eax
mov eax, esi
cdq
push edx
push eax
call fcn.00470f00
mov esi, dword [ebp - 8]
mov ebx, eax
add esp, 0x14
mov dword [ebp + 8], ebx
test esi, 0x20000
je 0x516f48
cmp ebx, dword [edi]
jb 0x516f25
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0xc8
mov esi, dword [eax + 0x68]
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov esi, dword [ebp - 8]
mov ebx, eax
add esp, 0x10
mov dword [ebp + 8], ebx
test esi, 0x10000
je 0x516f8a
cmp ebx, dword [edi]
jb 0x516f60
push ebx
mov ecx, edi
call fcn.00473f20
mov ecx, eax
jmp 0x516f63
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push ecx
push 0xd0
mov bl, byte [eax + 0x65]
call fcn.00470d90
push eax
xor eax, eax
test bl, bl
setne al
push eax
call fcn.00470d90
mov ebx, eax
add esp, 0x10
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 4]
add eax, 0x10
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00454290
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
jle 0x516fed
cmp ebx, dword [edi]
jb 0x516fb9
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push eax
call fcn.0046f310
push ebx
push 0xd8
mov esi, dword [eax]
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 0x14]
jl 0x516fa8
mov esi, dword [ebp - 8]
mov dword [ebp + 8], ebx
test esi, 0x40000
je 0x517023
cmp ebx, dword [edi]
jb 0x517003
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0xe0
mov esi, dword [eax + 0x6c]
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov ebx, eax
add esp, 0x10
mov dword [ebp + 8], ebx
mov esi, dword [ebp - 4]
cmp dword [esi + 0xb4], 0x1d
jne 0x517048
mov eax, dword [esi + 0xb0]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 0x1d
call fcn.004c9250
mov ebx, eax
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 8]
test eax, 0x80000
je 0x517083
cmp ebx, dword [edi]
jb 0x517060
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov esi, dword [esi + 0x70]
push ebx
push 0xf8
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov esi, dword [ebp - 4]
mov ebx, eax
mov eax, dword [ebp - 8]
add esp, 0x10
mov dword [ebp + 8], ebx
test eax, 0x100000
je 0x5170b8
cmp ebx, dword [edi]
jb 0x517098
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov esi, dword [esi + 0x74]
push ebx
push 0x100
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
test eax, 0x1000000
je 0x5170f7
cmp ebx, dword [edi]
jb 0x5170cd
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0x108
mov esi, dword [eax + 0x88]
call fcn.00470d90
push eax
mov eax, esi
cdq
push edx
push eax
call fcn.00470f00
mov ebx, eax
add esp, 0x14
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
mov esi, dword [ebp - 4]
test al, 4
je 0x517117
mov eax, dword [esi + 0x24]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 0x22
call fcn.004c9250
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
test eax, 0x400000
je 0x51714f
cmp ebx, dword [edi]
jb 0x51712c
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov esi, dword [esi + 0x80]
push ebx
push 0x118
call fcn.00470d90
push eax
push esi
call fcn.00470d90
mov ebx, eax
add esp, 0x10
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
test eax, 0x200000
je 0x51718b
cmp ebx, dword [edi]
jb 0x517164
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0x120
mov edi, dword [eax + 0x78]
mov esi, dword [eax + 0x7c]
call fcn.00470d90
push eax
push esi
push edi
call fcn.00470f00
mov ebx, eax
add esp, 0x14
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
test al, 0x20
je 0x51724a
mov edi, dword [ebp + 0xc]
cmp ebx, dword [edi]
jb 0x5171a4
push ebx
mov ecx, edi
call fcn.00473f20
mov ebx, eax
mov eax, dword [ebp - 4]
push ebx
push 0x12a
mov eax, dword [eax + 0x30]
mov dword [ebp + 8], eax
call fcn.00470d90
mov ebx, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 0xc]
push ecx
call fcn.00470d90
mov ecx, eax
add esp, 0x10
mov eax, dword [ebx + 8]
mov dword [ebp + 8], eax
test al, 1
je 0x517203
cmp ecx, dword [edi]
jb 0x5171e2
push ecx
mov ecx, edi
call fcn.00473f20
mov ecx, eax
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
push ecx
push 8
call fcn.00470d90
push eax
push esi
push edi
call fcn.00470f00
mov edi, dword [ebp + 0xc]
mov ecx, eax
mov eax, dword [ebp + 8]
add esp, 0x14
test al, 2
je 0x51722c
cmp ecx, dword [edi]
jb 0x517215
push ecx
mov ecx, edi
call fcn.00473f20
mov ecx, eax
mov esi, dword [ebx + 0x18]
push ecx
push 0x10
call fcn.00470d90
push eax
push esi
call fcn.00470d90
add esp, 0x10
mov ecx, eax
test byte [ebx + 4], 1
je 0x51724d
mov eax, dword [ebx + 4]
and eax, 0xfffffffc
push edi
add eax, 4
push ecx
push eax
call fcn.0058dd20
add esp, 0xc
mov ecx, eax
jmp 0x51724d
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
test ebx, 0x800000
je 0x51728d
cmp ecx, dword [edi]
jb 0x517269
push ecx
mov ecx, edi
call fcn.00473f20
mov ecx, eax
mov eax, dword [ebp - 4]
push ecx
push 0x130
mov esi, dword [eax + 0x84]
call fcn.00470d90
push eax
mov eax, esi
cdq
push edx
push eax
call fcn.00470f00
add esp, 0x14
mov ecx, eax
mov esi, dword [ebp - 4]
test bl, 8
je 0x5172a8
mov eax, dword [esi + 0x28]
push ecx
and eax, 0xfffffffe
mov ecx, edi
push eax
push 0x27
call fcn.004c9250
mov ecx, eax
test bl, 0x10
je 0x5172c0
mov eax, dword [esi + 0x2c]
push ecx
and eax, 0xfffffffe
mov ecx, edi
push eax
push 0x28
call fcn.004c9250
mov ecx, eax
test byte [esi + 4], 1
je 0x5172e3
mov eax, dword [esi + 4]
and eax, 0xfffffffc
push edi
add eax, 4
push ecx
push eax
call fcn.0058dd20
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 8