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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
push edi
push dword [esp + 0x50]
mov ecx, dword [ebp + 0x2ac]
add ecx, 4
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push dword [esp + 0x78]
mov ecx, dword [esp + 0x50]
mov esi, eax
mov dword [esp + 0x48], esi
call fcn.0050fafc
mov ecx, dword [ebp + 0x2ac]
mov edi, dword [esp + 0x7c]
add edi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
mov ecx, dword [ecx + 0x238]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x48]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [ecx + 0x34]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edx
cmp eax, ebx
je 0x516e87
mov ebx, dword [eax]
mov ecx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [ebx]
call dword [eax + 8]
mov edx, dword [esp + 0x18]
mov bl, byte [esp + 0x80]
imul ecx, eax, 0x28
mov eax, dword [edx]
cmp bl, byte [ecx + eax + 0x10]
mov ebx, dword [esp + 0x14]
jne 0x516e6e
mov ecx, dword [esp + 0x1c]
add ecx, esi
mov dword [esp + 0x7c], ecx
cmp ecx, edi
jge 0x516e6e
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, dword [ebx]
push dword [esp + 0x7c]
mov dword [esp + 0x24], eax
mov edx, dword [ecx + 0x14]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x20]
cmp edi, ecx
push dword [esp + 0x7c]
mov dword [esp + 0x38], eax
mov eax, ecx
mov dword [esp + 0x3c], ecx
cmovl eax, edi
mov ecx, dword [ebx]
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 0x10]
mov ecx, ebx
call edx
mov dword [esp + 0x2c], eax
test eax, eax
je 0x516e58
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 8]
imul ecx, eax, 0x28
mov eax, dword [esp + 0x18]
add ecx, dword [eax]
lea eax, [ecx + 8]
push eax
call fcn.004d5fa8
test al, al
jne 0x516db3
push dword [ebp + 0x2a0]
lea ecx, [esp + 0x38]
call fcn.0050f682
test al, al
je 0x516db3
xor edi, edi
inc edi
jmp 0x516db5
xor edi, edi
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], eax
mov ecx, dword [ebp + 0x2ac]
cmovle eax, dword [esp + 0x34]
push 1
push 1
inc eax
push eax
call fcn.004dffb6
mov ecx, ebp
mov esi, eax
call fcn.004ea84b
mov ecx, dword [esp + 0x14]
mov bl, al
mov edx, dword [ecx]
call dword [edx + 8]
push dword [esp + 0x84]
sub esi, dword [esp + 0x48]
mov edx, eax
push ebx
push dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edi
push dword [esp + 0x88]
push esi
sub esp, 0x20
lea esi, [esp + 0x90]
push 8
pop ecx
mov edi, esp
push dword [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x88]
mov esi, dword [esp + 0x84]
sub eax, esi
push dword [esp + 0x88]
push dword [esp + 0x84]
push eax
mov eax, dword [esp + 0xc8]
sub eax, esi
push eax
push edx
call fcn.00516a42
mov edi, dword [esp + 0x64]
add esp, 0x54
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, eax
mov dword [esp + 0x7c], eax
cmp eax, edi
jl 0x516d35
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add eax, 4
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x30]
jne 0x516cf8
mov ecx, dword [esp + 0x48]
cmp byte [ecx + 0x128], 0
je 0x516e9b
mov eax, dword [ebp + 0x238]
cmp eax, 0x22
je 0x516ebc
cmp byte [ecx + 0x130], 0
je 0x516fc2
mov eax, dword [ebp + 0x238]
cmp eax, 0x23
jne 0x516fc2
cmp eax, 0x22
jne 0x516ec4
mov eax, dword [ecx + 0x12c]
jmp 0x516eca
mov eax, dword [ecx + 0x134]
imul ecx, eax, 0x28
mov dword [esp + 0x7c], eax
mov eax, dword [edx]
mov dl, byte [esp + 0x80]
cmp dl, byte [ecx + eax + 0x10]
jne 0x516fc2
mov eax, dword [esp + 0x1c]
add eax, esi
mov dword [esp + 0x38], edi
push 2
mov dword [esp + 0x38], eax
lea eax, [ebp + 0x230]
pop ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
mov edi, dword [eax]
lea ecx, [esp + 0x34]
push edi
call fcn.0050f682
test al, al
je 0x516fa6
mov ecx, dword [esp + 0x4c]
mov eax, edi
sub eax, esi
mov dword [esp + 0x30], eax
cmp eax, dword [ecx + 0x18]
jge 0x516fa6
mov ecx, dword [ebp + 0x2ac]
lea eax, [edi + 1]
push 1
push 1
push eax
call fcn.004dffb6
push dword [esp + 0x84]
mov ebx, eax
mov ecx, ebp
sub ebx, esi
call fcn.004ea84b
movzx ecx, al
lea esi, [esp + 0x5c]
push ecx
push 1
push 0
push dword [esp + 0x88]
push ebx
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x84]
push ebx
push dword [esp + 0x7c]
push dword [esp + 0xcc]
call fcn.00516a42
mov esi, dword [esp + 0x98]
add esp, 0x54
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add eax, 4
sub ebx, 1
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
jne 0x516f03
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 0x2a4]
shr eax, 2
test al, 1
je 0x5171b9
mov ebx, dword [esp + 0x1c]
add ebx, esi
mov esi, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x24], esi
cmp esi, edi
jge 0x5171c1
mov ecx, dword [ebp + 0x2ac]
add ecx, 0x10
push esi
call fcn.004d1764
mov ecx, dword [ebp + 0x2ac]
cmp edi, eax
mov ebx, eax
mov dword [esp + 0x30], eax
cmovl ebx, edi
add ecx, 0x10
push esi
mov dword [esp + 0x2c], ebx
call fcn.004d1744
test eax, eax
je 0x5170b3
mov ecx, dword [ebp + 0x2ac]
lea ebx, [eax*2 + 0x22]
mov eax, dword [esp + 0x30]
cmp esi, eax
push 1
cmovle eax, esi
push 1
inc eax
push eax
call fcn.004dffb6
push dword [esp + 0x84]
mov ecx, ebp
mov esi, eax
call fcn.004ea84b
mov edx, dword [esp + 0x48]
sub esi, edx
movzx ecx, al
push ecx
push 1
push 0
push dword [esp + 0x88]
mov eax, dword [esp + 0x3c]
push esi
sub esp, 0x20
lea esi, [esp + 0x90]
sub eax, edx
push 8
pop ecx
mov edi, esp
push dword [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x70]
sub eax, edx
push eax
push ebx
call fcn.00516a42
mov edi, dword [esp + 0x64]
add esp, 0x54
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x24], ebx
mov esi, ebx
cmp ebx, edi
jl 0x516feb
mov ebx, dword [esp + 0x7c]
mov ecx, dword [ebp + 0x2ac]
add ecx, 0x10
push ebx
call fcn.004d1754
mov ecx, dword [ebp + 0x2ac]
lea edx, [ebx + 1]
push 1
push 1
mov esi, eax
push edx
mov dword [esp + 0x3c], esi
call fcn.004dffb6
mov edi, eax
xor ecx, ecx
push 0x25
pop eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
xor edx, edx
inc edx
shl edx, cl
test esi, edx
je 0x517185
push dword [esp + 0x84]
mov ebx, edi
mov ecx, ebp
sub ebx, dword [esp + 0x48]
call fcn.004ea84b
movzx eax, al
lea esi, [esp + 0x5c]
push eax
push 1
push 0
push dword [esp + 0x88]
push ebx
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x88]
push dword [esp + 0x88]
push dword [esp + 0x84]
push ebx
mov ebx, dword [esp + 0xc8]
mov eax, ebx
sub eax, dword [esp + 0x90]
push eax
push dword [esp + 0x6c]
call fcn.00516a42
mov eax, dword [esp + 0x70]
add esp, 0x54
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
add eax, 2
inc ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
cmp eax, 0x2d
jb 0x517100
mov ecx, dword [ebp + 0x2ac]
add ecx, 0x10
push ebx
call fcn.004d1778
mov ebx, eax
cmp ebx, dword [esp + 0x10]
mov dword [esp + 0x7c], ebx
jle 0x5170c5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp ebx, edi
jmp 0x5171af