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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xb70]
mov ecx, edi
call fcn.00462f08
mov ecx, edi
mov dword [esp + 0x68], eax
call fcn.00462f0e
mov ebx, dword [ebp + 8]
mov dword [esp + 0x6c], eax
test esi, esi
mov eax, dword [ebx]
mov dword [edi], eax
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [edi + 8], edx
je 0x511f31
mov eax, dword [esi + 0x20]
test eax, eax
je 0x511f31
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x24], ecx
mov dword [esi + 0xb7c], eax
mov ecx, dword [ebx + 4]
mov dword [esp + 0x28], edx
mov dword [esi + 0xb80], ecx
mov edx, dword [ebx + 8]
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esi + 0xb84], edx
call fcn.00462f14
dec eax
lea ecx, [esp + 0x50]
push eax
call fcn.004c2b10
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x2c]
call fcn.004c2ae0
mov ecx, edi
call fcn.00462f08
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.00462f0e
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x80]
push ecx
push edx
mov dword [esp + 0x34], eax
call dword [0x5887b4]
mov eax, dword [esi + 0xb14]
mov ecx, dword [esp + 0x84]
mov edx, dword [esi + 0x20]
add eax, ecx
lea ecx, [esp + 0x80]
push 1
push ecx
push edx
mov dword [esp + 0x98], eax
call dword [0x58861c]
lea ecx, [esp + 0x20]
call fcn.005614de
mov edi, dword [esi + 0xb18]
mov ecx, 7
sub ecx, edi
push 0
add eax, ecx
mov ecx, 7
cdq
idiv ecx
push 0
push 0
lea ecx, [esp + 0x50]
push edx
call fcn.004c2b10
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x2c]
call fcn.004c2ae0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
push 0
push 0
push 0
push 7
lea ecx, [esp + 0x54]
mov dword [esp + 0x50], eax
call fcn.004c2b10
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x44]
call fcn.00513c60
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push 0
push 0
mov dword [esp + 0x58], ecx
push 0
push 6
lea ecx, [esp + 0x54]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
call fcn.004c2b10
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x5c]
call fcn.00513c60
push 0
push 0
or edi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x6c]
mov dword [esi + 0x8d8], edi
call fcn.0056120e
mov eax, dword [esi + 0x8e8]
test eax, eax
je 0x511f07
mov dword [esp + 0x34], edi
jmp 0x511c07
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 8]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
test byte [edi + 0xc], 1
jne 0x511efb
push 0x5ccec8
mov ecx, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.004630ee
test eax, eax
je 0x511c71
mov ecx, ebx
call fcn.00462f0e
push eax
call fcn.005128f0
add esp, 4
lea ecx, [edi + 0x10]
push eax
call fcn.00462f32
mov eax, dword [edi + 0xc]
push 1
or eax, 0x40000
mov dword [edi + 0xc], eax
add edi, 0x30
push edi
jmp 0x511ef1
push 0x5cce80
mov ecx, edi
call fcn.004630ee
test eax, eax
je 0x511cfb
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
push 0
push 0
mov dword [esp + 0x1c], ecx
push 0
push 7
lea ecx, [esp + 0xac]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
call fcn.004c2b10
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x5c]
call fcn.00513c60
mov eax, dword [esi + 0xb1c]
test al, 4
je 0x511cef
mov ecx, dword [esi + 0xb90]
test ecx, ecx
je 0x511cef
test al, 2
je 0x511cef
and dword [edi + 0xc], 0xfffbffff
jmp 0x511e86
or dword [edi + 0xc], 0x40000
jmp 0x511e86
push 0x5cce98
mov ecx, edi
call fcn.004630ee
test eax, eax
je 0x511d3c
lea ecx, [esp + 0x90]
push ecx
call fcn.00463772
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0xc]
and eax, 0xfffbffff
mov dword [edi + 0xc], eax
jmp 0x511e86
push 0x5cceb0
mov ecx, edi
call fcn.004630ee
test eax, eax
je 0x511dcb
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
inc edx
cmp edx, 3
mov dword [esp + 0x34], edx
ja case.default.0x511d62
jmp dword [edx*4 + 0x511f3c]
mov edx, dword [esp + 0x2c]
lea eax, [edx - 1]
test eax, eax
jne case.default.0x511d62
mov eax, 0xc
mov ecx, dword [esp + 0x1c]
dec ecx
jmp case.default.0x511d62
mov edx, dword [esp + 0x2c]
lea eax, [edx + 1]
cmp eax, 0xc
jle case.default.0x511d62
mov ecx, dword [esp + 0x1c]
mov eax, 1
inc ecx
jmp case.default.0x511d62
mov edx, dword [esp + 0x1c]
lea ecx, [edx + 1]
push 0
push 0
push 0
push 1
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00561202
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jmp 0x511d28
push 0x5cce68
mov ecx, edi
call fcn.004630ee
test eax, eax
je 0x511e38
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
sub esp, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x68]
mov eax, esp
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x6c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x44]
call fcn.00513c60
mov eax, dword [esi + 0xb1c]
test al, 4
je 0x511cef
mov ecx, dword [esi + 0xb94]
test ecx, ecx
jne 0x511cef
test al, 1
jmp 0x511ce1
push 0x5ccef8
mov ecx, edi
call fcn.004630ee
test eax, eax
je 0x511efb
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
sub esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x68]
mov eax, esp
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x2c]
mov dword [eax + 8], edx
call fcn.00513c60
push edi
push 0x5ccef8
call fcn.00560f0e
mov edi, eax
add esp, 8
test edi, edi
je 0x511efb
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call dword [eax + 0xd0]
mov eax, dword [edi + 0x78]
test eax, eax
je 0x511efb
mov dword [edi + 0x78], 0
add edi, 0x30
push 2
push 2
mov edx, dword [edi]
mov dword [esp + 0x78], edx
mov eax, dword [edi + 4]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
mov ecx, dword [edi + 8]
push eax
mov dword [esp + 0x84], ecx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x88], edx
call dword [0x588604]
lea ecx, [esp + 0x70]
push 1
push ecx
mov edx, dword [esi + 0x20]
push edx
call dword [0x58861c]
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x511c03
lea edi, [esi + 0xb70]
mov ecx, edi
call fcn.00462f0e
cmp dword [esp + 0x6c], eax
jne 0x511f27
mov ecx, edi
call fcn.00462f08
cmp dword [esp + 0x68], eax
je 0x511f31
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x354]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4