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

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x7c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
mov edx, dword [eax]
test edx, edx
jne 0x519bd2
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x90]
lea eax, [esp + 0x4c]
xor edi, edi
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [ecx + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ecx + 8]
mov dword [esp], eax
call fcn.004b1370
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x90]
xor eax, eax
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x4c]
xor edi, edi
mov dword [esp + 0x1c], ebx
mov eax, dword [edx + 0x38]
mov ebp, esi
mov dword [esp + 0x2c], esi
xor esi, esi
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp + 0x28], esi
mov dword [esp], eax
call fcn.004bebc0
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x60]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004bede0
mov esi, dword [esp + 0x38]
mov ecx, 1
mov edx, 0x5dcec3
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.004bf2d0
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x30]
mov dword [esp + 8], eax
mov eax, dword [edx]
mov dword [esp + 4], eax
mov eax, dword [edx + 8]
mov dword [esp], eax
call fcn.004b1370
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx + 0x14]
cmp eax, 0
jle 0x519eca
mov ebx, dword [ecx + 0x10]
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + edi*4]
lea edx, [esp + 0x60]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0x54]
mov dword [esp + 0x34], esi
test eax, eax
jne 0x519f90
test edi, edi
jle 0x519d74
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x58]
test eax, eax
je 0x519d74
mov eax, dword [esp + 0x20]
test eax, eax
je 0x519cf4
mov ebp, dword [esp + 0x18]
add dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
cmp ecx, edi
lea esi, [eax + edx]
jge 0x519d4a
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
lea edx, [esi + ebp]
lea edx, [edx + eax*2]
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + ecx*4]
inc ecx
mov ebp, dword [esp + 0x28]
and dword [eax + 0x9c], 0xfffffffb
cmp ecx, edi
mov dword [eax + 0x60], ebp
mov ebp, dword [esp + 0x24]
mov dword [eax + 0x7c], edx
mov dword [eax + 0x64], ebp
mov ebp, dword [esp + 0x2c]
mov dword [eax + 0x80], ebp
jl 0x519d20
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x20]
lea eax, [esi + edx]
mov edx, dword [esp + 0x4c]
lea eax, [eax + edx*2]
mov ebp, edx
add dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov esi, dword [ebx + edi*4]
mov eax, dword [esi]
cmp eax, 4
je 0x519fd0
cmp eax, 5
je 0x519ff3
xor eax, eax
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x51a068
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x51a0f2
xor eax, eax
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov ebx, dword [esi + 0xc]
test ebx, ebx
jne 0x51a09f
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 8]
mov esi, dword [esp + 0x90]
lea eax, [edx + 1]
mov dword [esp + 0x40], eax
mov ebx, dword [esi + 0x10]
mov esi, dword [ebx + edi*4]
mov dword [esi + 0x84], eax
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x24]
jle 0x519df0
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esi]
test eax, eax
je 0x519e0c
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x51a144
xor eax, eax
mov dword [esp + 0x44], eax
mov edx, dword [ebx + edi*4]
mov eax, dword [esp + 0x40]
cmp dword [edx + 0x84], eax
jge 0x519e27
mov dword [edx + 0x84], eax
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x20]
jle 0x519e35
mov dword [esp + 0x20], eax
mov eax, dword [0x5ee4f0]
mov edx, dword [ebx + edi*4]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x5c]
test eax, eax
je 0x51a023
xor esi, esi
mov dword [esp + 0x44], esi
mov edx, dword [ebx + edi*4]
mov eax, dword [esp + 0x40]
cmp dword [edx + 0x84], eax
jge 0x519e67
mov dword [edx + 0x84], eax
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x28]
jle 0x519e75
mov dword [esp + 0x28], eax
mov ecx, dword [ebx + edi*4]
mov eax, dword [esp + 0x48]
mov edx, dword [ecx + 0x84]
lea eax, [edx + eax*2 + 1]
mov dword [ecx + 0x84], eax
mov eax, dword [ebx + edi*4]
mov edx, dword [eax + 0x84]
mov dword [eax + 0x88], ebp
add ebp, edx
cmp ebp, dword [esp + 0x1c]
jle 0x519ea7
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x90]
inc edi
mov eax, dword [esi + 0x14]
cmp eax, edi
jg 0x519cb0
mov edi, dword [esp + 0x20]
test edi, edi
je 0x519eca
mov ebp, dword [esp + 0x18]
add dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jle 0x519f32
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ebx, dword [eax + 0x10]
mov eax, dword [esp + 0x20]
lea esi, [edx + ebp]
lea edx, [esi + eax]
mov eax, dword [esp + 0x48]
lea edx, [edx + eax*2]
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + ecx*4]
inc ecx
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
or dword [eax + 0x9c], 4
mov dword [eax + 0x60], esi
mov esi, dword [esp + 0x2c]
mov dword [eax + 0x64], ebp
mov ebp, dword [esp + 0x90]
mov dword [eax + 0x7c], edx
mov dword [eax + 0x80], esi
cmp dword [ebp + 0x14], ecx
jg 0x519f00
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
add edx, esi
add dword [esp + 0x1c], eax
add edx, ebx
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x18]
add edx, ebp
add ecx, eax
add edx, edi
lea edx, [edx + ecx*2]
test edx, edx
jle 0x51a193
mov esi, dword [esp + 0x1c]
test esi, esi
jle 0x51a185
mov eax, dword [esp + 0x90]
mov dword [eax + 0x64], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + 0x68], edx
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x90]
lea ebx, [esp + 0x50]
mov eax, dword [ecx]
mov dword [esp], eax
call fcn.004bebc0
mov dword [esp + 0x34], eax
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004bede0
mov dword [esp + 0x30], ebx
mov esi, dword [esp + 0x90]
mov ebx, dword [esi + 0x10]
jmp 0x519cce
mov ecx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x44], eax
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
add edx, edx
sub eax, edx
mov dword [esp + 0x40], eax
mov dword [esi + 0x84], eax
jmp 0x519e8c
mov esi, dword [esp + 0x90]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x51a124
xor edx, edx
mov dword [esp + 0x40], edx
xor eax, eax
mov edx, dword [ebx + edi*4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [edx + 0x84], eax
jmp 0x519e8c
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 8], eax
mov eax, dword [edx]
mov dword [esp + 4], eax
mov eax, dword [edx + 8]
mov dword [esp], eax
call fcn.004b1370
mov ecx, dword [esp + 0x3c]
mov eax, dword [0x5ee4f4]
sub eax, ecx
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x90]
mov ebx, dword [ecx + 0x10]
jmp 0x519e52
lea eax, [esp + 0x44]
lea ecx, [esp + 0x40]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp], eax
call fcn.004c3270
cmp dword [esi + 0x68], 3
mov eax, 1
mov dword [esp + 0x10], eax
jne 0x519db6
mov edx, dword [esp + 0x40]
jmp 0x519dc8
xor ecx, ecx
mov dword [esp + 4], ecx
mov eax, dword [esi + 0xc]
mov dword [esp], eax
mov eax, dword [0x5ecbec]
call dword [eax + 0xac]
mov edx, dword [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], edx
mov dword [esp], eax
call fcn.004bf2d0
mov ecx, dword [esi + 0x68]
mov ebx, eax
cmp ecx, 3
setne dl
xor eax, eax
cmp dword [esp + 0x10], 0
setne al
test eax, edx
je 0x51a134
cmp ecx, 5
ja case.0x51a0eb.3
jmp dword [ecx*4 + 0x5dcec8]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.005130b0
mov dword [esp + 4], eax
lea edx, [esp + 0x40]
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00512e30
jmp 0x51a083
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov dword [esp + 0x40], eax
jmp 0x51a00b
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 8]
mov dword [esp + 0x44], ebx
jmp 0x519dc8
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0x34]
mov dword [esp], eax
mov eax, dword [0x5ecbec]
call dword [eax + 0xac]
mov edx, dword [esi + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004bf2d0
mov dword [esp + 0x44], eax
mov esi, dword [esp + 0x90]
mov ebx, dword [esi + 0x10]
jmp 0x519e12
mov ebx, 1
mov dword [esp + 0x1c], ebx
jmp 0x519f73
mov edx, 1
jmp 0x519f67
cmp dword [esp + 0x44], ebx
jge 0x51a1a7
mov dword [esp + 0x44], ebx
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x40]
add eax, edx
lea edx, [eax + 2]
jmp 0x519dc8
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov eax, dword [ecx + 8]
cmp eax, edx
jle 0x51a1cd
mov edx, eax
mov eax, dword [esp + 0x44]
add ebx, eax
lea eax, [ebx + 2]
mov dword [esp + 0x44], eax
jmp 0x519dc8
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 8]
cmp eax, edx
jle 0x51a1f0
mov edx, eax
cmp dword [esp + 0x44], ebx
jge 0x519dc8
mov dword [esp + 0x44], ebx
jmp 0x519dc8