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

Disassembly:
push 0xffffffffffffffff
push 0x5ac7b9
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628d00]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
xor esi, esi
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], esi
call fcn.004f6720
mov ebp, dword [esp + 0xa8]
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
mov dword [esp + 0xa0], esi
call fcn.004f3de0
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
test eax, eax
setle bl
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov dword [esp + 0x9c], 0xffffffff
push esi
cmp ecx, 0x10
jb 0x510d7c
call fcn.00493180
jmp 0x510d81
call fcn.00493190
add esp, 4
test bl, bl
je 0x510e7d
push 2
lea ecx, [esp + 0x48]
call fcn.004f6720
mov esi, 1
lea edx, [esp + 0x44]
mov ebx, esi
push edx
mov ecx, ebp
mov dword [esp + 0xa0], esi
mov dword [esp + 0x1c], ebx
call fcn.004f3de0
test eax, eax
je 0x510ded
push 3
lea ecx, [esp + 0x34]
call fcn.004f6720
lea eax, [esp + 0x30]
mov ebx, 3
push eax
mov ecx, ebp
mov dword [esp + 0xa0], 2
mov dword [esp + 0x1c], ebx
call fcn.004f3de0
mov byte [esp + 0x17], 0
test eax, eax
jne 0x510df2
mov byte [esp + 0x17], 1
mov dword [esp + 0x9c], esi
test bl, 2
je 0x510e31
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
and ebx, 0xfffffffd
lea ecx, [edx*4]
mov dword [esp + 0x18], ebx
push esi
cmp ecx, 0x10
jb 0x510e29
call fcn.00493180
jmp 0x510e2e
call fcn.00493190
add esp, 4
mov dword [esp + 0x9c], 0xffffffff
test bl, 1
je 0x510e74
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov edx, ecx
add edx, edx
mov esi, edi
xor eax, eax
add edx, edx
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x510e6c
call fcn.00493180
mov al, byte [esp + 0x1b]
add esp, 4
jmp 0x511041
call fcn.00493190
add esp, 4
mov al, byte [esp + 0x17]
jmp 0x511041
lea ecx, [esp + 0x1c]
call fcn.004f7e70
cmp dword [esp + 0xac], 0
mov dword [esp + 0x9c], 3
mov dword [esp + 0x18], 0
jbe 0x510fcb
mov ebx, dword [esp + 0xa4]
mov edi, edi
push 2
lea ecx, [esp + 0x70]
call fcn.004f6720
push 2
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa0], 4
call fcn.004f6720
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x84]
push ebp
push ecx
mov byte [esp + 0xa8], 5
call fcn.004a2f20
add esp, 0xc
push eax
lea edx, [esp + 0x5c]
push edx
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0xa8], 6
call fcn.004f9520
mov ecx, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
mov byte [esp + 0x9c], 5
push esi
cmp eax, 0x10
jb 0x510f36
call fcn.00493180
jmp 0x510f3b
call fcn.00493190
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [edx*4]
mov byte [esp + 0x9c], 4
push esi
cmp ecx, 0x10
jb 0x510f6a
call fcn.00493180
jmp 0x510f6f
call fcn.00493190
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov edx, ecx
add edx, edx
add esp, 4
mov esi, edi
xor eax, eax
add edx, edx
mov byte [esp + 0x9c], 3
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x510f9b
call fcn.00493180
jmp 0x510fa0
call fcn.00493190
add esp, 4
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00510540
add esp, 8
test al, al
je 0x510ff7
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0xac]
jb 0x510eb0
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov edx, ecx
add edx, edx
mov esi, edi
xor eax, eax
add edx, edx
mov dword [esp + 0x9c], 0xffffffff
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x511037
call fcn.00493180
jmp 0x51103c
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
mov dword [esp + 0x9c], 0xffffffff
push esi
cmp ecx, 0x10
jb 0x51102b
call fcn.00493180
add esp, 4
xor al, al
jmp 0x511041
call fcn.00493190
add esp, 4
xor al, al
jmp 0x511041
call fcn.00493190
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