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

Disassembly:
push 0xffffffffffffffff
push 0x54b1ad
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x463df0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463df0]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x134]
mov eax, dword [ebx]
mov edi, ecx
mov dword [esp + 0x2c], ebx
mov dword [edi + 0x274], eax
test al, 1
jne 0x518cfb
xor al, al
jmp 0x519333
mov eax, dword [esp + 0x13c]
mov edx, dword [esp + 0x138]
lea ebp, [edi + 0x7c]
mov dword [ebp], eax
lea eax, [edi + 0x170]
lea ecx, [ebx + 0x10]
push eax
mov dword [edi + 0x278], ecx
add edx, 0xfffffff0
push ebx
mov ecx, ebp
mov dword [edi + 0x27c], edx
call fcn.00514290
mov eax, dword [ebp]
mov dword [ebp + 4], eax
mov ecx, dword [edi + 0x27c]
mov edx, dword [edi + 0x278]
xor esi, esi
push esi
push ecx
push edx
mov ecx, edi
call fcn.005143a0
mov eax, dword [edi + 0x274]
shr eax, 1
test al, 1
je 0x518d98
mov eax, dword [ebx + 4]
xor eax, dword [esp + 0x13c]
lea ecx, [edi + 0x84]
push eax
call fcn.0053d990
lea eax, [edi + 0x84]
push eax
push ebx
mov ecx, ebp
call fcn.00514800
mov ecx, dword [edi + 0x27c]
mov edx, dword [edi + 0x278]
push ecx
push edx
lea ecx, [edi + 0x84]
call fcn.0053d940
movzx ebp, word [ebx + 8]
mov eax, dword [edi + 0x290]
lea ebx, [edi + 0x280]
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
cmp dword [ebx + 0xc], eax
jbe 0x518dba
call fcn.00526bf6
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0xf0], eax
mov dword [esp + 0x1c], ecx
cmp ecx, dword [ebx + 0x10]
jbe 0x518dd8
call fcn.00526bf6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
push edx
mov edx, dword [esp + 0xf4]
push edx
push ecx
push eax
lea eax, [esp + 0x100]
push eax
mov ecx, ebx
call fcn.0047ea00
push ebp
mov ecx, ebx
call fcn.00518700
push esi
lea ecx, [edi + 0x2d8]
push ebp
call fcn.00515720
xor ebx, ebx
cmp ebp, esi
jle 0x519120
jmp 0x518e20
mov ecx, dword [edi + 0x2e8]
sub ecx, dword [edi + 0x2e4]
sar ecx, 2
cmp ebx, ecx
jb 0x518e38
call fcn.00526bf6
mov edx, dword [edi + 0x2e4]
mov dword [edx + ebx*4], 0xffffffff
inc ebx
cmp ebx, ebp
jl 0x518e20
cmp ebp, esi
jle 0x519120
mov dword [esp + 0x1c], ebp
jmp 0x518e60
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [edi + 0x274]
shr eax, 1
test al, 1
je 0x518e80
push ebp
lea ecx, [edi + 0x84]
call fcn.0053dcb0
jmp 0x518e89
mov ecx, dword [edi + 0x278]
mov al, byte [ecx + ebp]
mov byte [esp + ebx + 0xf0], al
inc ebx
inc ebp
cmp ebx, 5
jl 0x518e66
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0xf4]
push eax
call fcn.005142f0
add dword [esp + 0x18], eax
push 4
call fcn.00526c21
add esp, 4
cmp eax, esi
je 0x518ec3
lea ecx, [esp + 0x30]
mov dword [eax], ecx
jmp 0x518ec5
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x24]
cmp eax, esi
mov dword [esp + 0x12c], 1
jle 0x51909e
lea edx, [esp + 0xbc]
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x18]
xor ebp, ebp
mov eax, dword [edi + 0x274]
shr eax, 1
test al, 1
je 0x518f1b
push ebx
lea ecx, [edi + 0x84]
call fcn.0053dcb0
jmp 0x518f24
mov ecx, dword [edi + 0x278]
mov al, byte [ebx + ecx]
mov byte [esp + ebp + 0xf8], al
inc ebp
inc ebx
cmp ebp, 0x28
jl 0x518f01
add dword [esp + 0x18], 0x28
lea ebx, [edi + 0x170]
push ebx
lea ecx, [edi + 0x7c]
call fcn.00514910
push 0x28
lea edx, [esp + 0xfc]
push edx
mov eax, edx
push eax
mov ecx, ebx
call fcn.004bf000
mov ebx, 0x46e320
push 4
mov dword [esp + 0x4c], ebx
call fcn.00526c21
add esp, 4
cmp eax, esi
je 0x518f7c
lea ecx, [esp + 0xbc]
mov dword [eax], ecx
jmp 0x518f7e
xor eax, eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x12c], 3
call fcn.0050e580
mov dword [esp + 0x48], 0x46e328
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd8], edi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe8], esi
mov dword [esp + 0xec], esi
lea edx, [esp + 0xf8]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x130], 4
call fcn.0050e1c0
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.004a8900
mov dword [esp + 0xec], esi
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x12c], 5
call fcn.0050e580
mov ebp, dword [esp + 0xc8]
mov byte [esp + 0x12c], 6
cmp ebp, esi
je 0x519066
mov ebx, dword [esp + 0xcc]
cmp ebp, ebx
je 0x51905d
mov edx, dword [ebp]
mov eax, dword [edx]
push esi
mov ecx, ebp
call eax
add ebp, 0x18
cmp ebp, ebx
jne 0x519045
mov ebp, dword [esp + 0xc8]
push ebp
call fcn.005265f5
add esp, 4
mov ecx, dword [esp + 0xbc]
push ecx
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], esi
mov byte [esp + 0x130], 1
call fcn.005265f5
add esp, 4
sub dword [esp + 0x20], 1
jne 0x518efb
lea edx, [esp + 0x30]
push edx
lea ecx, [edi + 0x280]
call fcn.00518c00
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x12c], 7
cmp ebp, esi
je 0x5190f1
mov ebx, dword [esp + 0x40]
cmp ebp, ebx
je 0x5190e8
lea esp, [esp]
mov eax, dword [ebp]
mov edx, dword [eax]
push esi
mov ecx, ebp
call edx
add ebp, 0xa8
cmp ebp, ebx
jne 0x5190d0
mov ebp, dword [esp + 0x3c]
push ebp
call fcn.005265f5
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x130], 0xffffffff
call fcn.005265f5
add esp, 4
sub dword [esp + 0x1c], 1
jne 0x518e60
mov ecx, dword [esp + 0x2c]
movzx ebp, word [ecx + 0xa]
mov eax, dword [edi + 0x2c8]
lea ebx, [edi + 0x2b8]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0xc], eax
jbe 0x519146
call fcn.00526bf6
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx]
mov dword [esp + 0xf0], edx
mov dword [esp + 0x24], ecx
cmp ecx, dword [ebx + 0x10]
jbe 0x519164
call fcn.00526bf6
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx]
push edx
mov edx, dword [esp + 0xf4]
push edx
push ecx
push eax
lea eax, [esp + 0x100]
push eax
mov ecx, ebx
call fcn.0047b010
push ebp
mov ecx, ebx
call fcn.00515860
xor ebx, ebx
cmp ebp, esi
jle 0x5192fd
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
xor ebp, ebp
mov edx, dword [edi + 0x274]
shr edx, 1
test dl, 1
je 0x5191bf
push ecx
lea ecx, [edi + 0x84]
call fcn.0053dcb0
mov ecx, dword [esp + 0x1c]
jmp 0x5191c8
mov eax, dword [edi + 0x278]
mov al, byte [ecx + eax]
mov byte [esp + ebp + 0xf8], al
inc ebp
inc ecx
cmp ebp, 0x20
mov dword [esp + 0x1c], ecx
jl 0x5191a0
add dword [esp + 0x18], 0x20
lea ebp, [edi + 0x170]
push ebp
lea ecx, [edi + 0x7c]
call fcn.00514910
push 0x20
lea ecx, [esp + 0xfc]
push ecx
mov edx, ecx
push edx
mov ecx, ebp
call fcn.004bf000
xor eax, eax
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
push ebx
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x134], 8
call fcn.0050ea30
lea ecx, [esp + 0x48]
push ecx
lea ecx, [edi + 0x2b8]
call fcn.00516390
inc ebx
cmp ebx, dword [esp + 0x20]
mov dword [esp + 0x12c], 0xffffffff
jl 0x519196
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x2d0], edx
mov ecx, dword [eax + 0xc]
push esi
push esi
push ecx
mov eax, esp
mov dword [edi + 0x2d4], ecx
mov dword [esp + 0x34], esp
mov dword [eax], 1
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call edx
mov al, 1
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00526a8a
add esp, 0x11c
ret 0xc