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

Disassembly:
push 0xffffffffffffffff
push 0x56d599
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5bf500]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], 0
call fcn.004fdf50
mov ebp, dword [esp + 0xa8]
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
mov dword [esp + 0xa0], 0
call fcn.005014b0
mov edx, dword [esp + 0x38]
test eax, eax
mov esi, dword [esp + 0x3c]
mov ecx, edx
setle bl
mov dword [esp + 0x9c], 0xffffffff
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x5192d2
call fcn.004edb70
jmp 0x5192d7
call fcn.00443e80
add esp, 4
test bl, bl
je 0x5193dc
push 2
lea ecx, [esp + 0x48]
call fcn.004fdf50
lea eax, [esp + 0x44]
mov dword [esp + 0x9c], 1
mov ebx, 1
mov ecx, ebp
push eax
mov dword [esp + 0x1c], ebx
call fcn.005014b0
test eax, eax
je 0x519345
push 3
lea ecx, [esp + 0x34]
call fcn.004fdf50
lea eax, [esp + 0x30]
mov dword [esp + 0x9c], 2
mov ebx, 3
mov ecx, ebp
push eax
mov dword [esp + 0x1c], ebx
call fcn.005014b0
mov byte [esp + 0x17], 0
test eax, eax
jne 0x51934a
mov byte [esp + 0x17], 1
mov dword [esp + 0x9c], 1
test bl, 2
je 0x51938d
mov edx, dword [esp + 0x38]
xor eax, eax
mov esi, dword [esp + 0x3c]
mov ecx, edx
mov edi, esi
and ebx, 0xfffffffd
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov dword [esp + 0x18], ebx
push esi
cmp eax, 0x10
jb 0x519385
call fcn.004edb70
jmp 0x51938a
call fcn.00443e80
add esp, 4
mov dword [esp + 0x9c], 0xffffffff
test bl, 1
je 0x5193d3
mov edx, dword [esp + 0x4c]
xor eax, eax
mov esi, dword [esp + 0x50]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x5193cb
call fcn.004edb70
mov al, byte [esp + 0x1b]
add esp, 4
jmp 0x519595
call fcn.00443e80
add esp, 4
mov al, byte [esp + 0x17]
jmp 0x519595
lea ecx, [esp + 0x1c]
call fcn.004fe0b0
xor ebx, ebx
mov dword [esp + 0x9c], 3
cmp dword [esp + 0xac], ebx
jbe 0x51951c
nop
push 2
lea ecx, [esp + 0x70]
call fcn.004fdf50
push 2
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 4
call fcn.004fdf50
lea eax, [esp + 0x6c]
mov byte [esp + 0x9c], 5
push eax
lea eax, [esp + 0x84]
push ebp
push eax
call fcn.004f4a20
add esp, 0xc
push eax
lea eax, [esp + 0x5c]
mov byte [esp + 0xa0], 6
push eax
push dword [esp + 0xac]
lea ecx, [esp + 0x28]
call fcn.00504e20
mov edx, dword [esp + 0x88]
xor eax, eax
mov esi, dword [esp + 0x8c]
mov ecx, edx
mov edi, esi
mov byte [esp + 0x9c], 5
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x51948c
call fcn.004edb70
jmp 0x519491
call fcn.00443e80
mov edx, dword [esp + 0x64]
xor eax, eax
mov esi, dword [esp + 0x68]
add esp, 4
mov edi, esi
mov byte [esp + 0x9c], 4
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x5194c0
call fcn.004edb70
jmp 0x5194c5
call fcn.00443e80
mov edx, dword [esp + 0x78]
xor eax, eax
mov esi, dword [esp + 0x7c]
add esp, 4
mov edi, esi
mov byte [esp + 0x9c], 3
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x5194f4
call fcn.004edb70
jmp 0x5194f9
call fcn.00443e80
add esp, 4
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00517b90
add esp, 8
test al, al
je 0x51954b
inc ebx
cmp ebx, dword [esp + 0xac]
jb 0x519400
mov edx, dword [esp + 0x24]
xor eax, eax
mov esi, dword [esp + 0x28]
mov ecx, edx
mov edi, esi
mov dword [esp + 0x9c], 0xffffffff
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x51958b
call fcn.004edb70
jmp 0x519590
mov edx, dword [esp + 0x24]
xor eax, eax
mov esi, dword [esp + 0x28]
mov ecx, edx
mov edi, esi
mov dword [esp + 0x9c], 0xffffffff
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x51957f
call fcn.004edb70
add esp, 4
xor al, al
jmp 0x519595
call fcn.00443e80
add esp, 4
xor al, al
jmp 0x519595
call fcn.00443e80
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret