Function at 0x516f40
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 0x516f88
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp eax, dword [edi]
jb 0x516f6a
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 0x516f8b
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
test al, al
jns 0x516fc7
cmp ebx, dword [edi]
jb 0x516fa3
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 0x516ffc
cmp ebx, dword [edi]
jb 0x516fdc
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 0x517039
cmp ebx, dword [edi]
jb 0x517011
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 0x517079
mov edi, dword [ebp + 0xc]
cmp ebx, dword [edi]
jb 0x517051
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 0x51709c
mov eax, dword [esi + 0x1c]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 0xc
call fcn.004c9530
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
test eax, 0x8000000
je 0x5170d5
cmp ebx, dword [edi]
jb 0x5170b1
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 0x5170f2
mov eax, dword [esi + 0x20]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 0xe
call fcn.004c9530
mov ebx, eax
mov dword [ebp + 8], ebx
cmp dword [esi + 0xb4], 0xf
jne 0x517133
cmp ebx, dword [edi]
jb 0x517116
push ebx
mov ecx, edi
call fcn.00473f20
cmp dword [esi + 0xb4], 0xf
mov ebx, eax
je 0x517116
xor esi, esi
jmp 0x51711c
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 0x51716f
cmp ebx, dword [edi]
jb 0x51714c
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 0x5171af
cmp ebx, dword [edi]
jb 0x517185
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 0x5171f2
cmp ebx, dword [edi]
jb 0x5171c5
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 0x51722e
cmp ebx, dword [edi]
jb 0x51720b
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 0x517267
cmp ebx, dword [edi]
jb 0x517244
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 0x5172a4
cmp ebx, dword [edi]
jb 0x51727d
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 0x5172e0
cmp ebx, dword [edi]
jb 0x5172bd
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 0x517322
cmp ebx, dword [edi]
jb 0x5172f8
push ebx
mov ecx, edi
call fcn.00473f20
mov ecx, eax
jmp 0x5172fb
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 0x51735f
cmp ebx, dword [edi]
jb 0x517338
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 0x517398
cmp ebx, dword [edi]
jb 0x517375
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 0x5173da
cmp ebx, dword [edi]
jb 0x5173b0
push ebx
mov ecx, edi
call fcn.00473f20
mov ecx, eax
jmp 0x5173b3
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 0x51743d
cmp ebx, dword [edi]
jb 0x517409
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 0x5173f8
mov esi, dword [ebp - 8]
mov dword [ebp + 8], ebx
test esi, 0x40000
je 0x517473
cmp ebx, dword [edi]
jb 0x517453
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 0x517498
mov eax, dword [esi + 0xb0]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 0x1d
call fcn.004c9530
mov ebx, eax
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 8]
test eax, 0x80000
je 0x5174d3
cmp ebx, dword [edi]
jb 0x5174b0
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 0x517508
cmp ebx, dword [edi]
jb 0x5174e8
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 0x517547
cmp ebx, dword [edi]
jb 0x51751d
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 0x517567
mov eax, dword [esi + 0x24]
mov ecx, edi
push ebx
and eax, 0xfffffffe
push eax
push 0x22
call fcn.004c9530
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp + 8], ebx
test eax, 0x400000
je 0x51759f
cmp ebx, dword [edi]
jb 0x51757c
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 0x5175db
cmp ebx, dword [edi]
jb 0x5175b4
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 0x51769a
mov edi, dword [ebp + 0xc]
cmp ebx, dword [edi]
jb 0x5175f4
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 0x517653
cmp ecx, dword [edi]
jb 0x517632
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 0x51767c
cmp ecx, dword [edi]
jb 0x517665
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 0x51769d
mov eax, dword [ebx + 4]
and eax, 0xfffffffc
push edi
add eax, 4
push ecx
push eax
call fcn.0058e1e0
add esp, 0xc
mov ecx, eax
jmp 0x51769d
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
test ebx, 0x800000
je 0x5176dd
cmp ecx, dword [edi]
jb 0x5176b9
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 0x5176f8
mov eax, dword [esi + 0x28]
push ecx
and eax, 0xfffffffe
mov ecx, edi
push eax
push 0x27
call fcn.004c9530
mov ecx, eax
test bl, 0x10
je 0x517710
mov eax, dword [esi + 0x2c]
push ecx
and eax, 0xfffffffe
mov ecx, edi
push eax
push 0x28
call fcn.004c9530
mov ecx, eax
test byte [esi + 4], 1
je 0x517733
mov eax, dword [esi + 4]
and eax, 0xfffffffc
push edi
add eax, 4
push ecx
push eax
call fcn.0058e1e0
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