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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x51fd5c
xor al, al
jmp 0x520068
push 0x1000
call fcn.0045ae00
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x51fd7f
xor al, al
jmp 0x520068
push 0
push 0x1000
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x51fdb5
mov edx, dword [ebp - 8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.00534c00
add esp, 4
xor al, al
jmp 0x520068
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x54], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x54]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x20], 0
jne 0x51fe03
mov edx, dword [ebp - 8]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.00534c00
add esp, 4
xor al, al
jmp 0x520068
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0045ae00
add esp, 4
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x51fe37
mov eax, dword [ebp - 8]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00534c00
add esp, 4
xor al, al
jmp 0x520068
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x51fe81
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00534c00
add esp, 4
mov edx, dword [ebp - 8]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.00534c00
add esp, 4
xor al, al
jmp 0x520068
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x8c]
call fcn.005201b0
mov eax, dword [ebp + 0x10]
and eax, 0xffffff
cmp eax, 0xffff
ja 0x51ff5a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
sub edx, 1
and edx, 0xffff
mov word [ebp - 0x30], dx
mov eax, dword [ebp + 0x10]
and eax, 0xffff
movzx ecx, ax
movzx edx, word [ebp - 0x30]
sub ecx, edx
mov word [ebp - 0x34], cx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0x1c]
movzx edx, word [ebp - 0x34]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00534c00
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00534c00
add esp, 4
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x18]
jb 0x51ff40
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x20]
cmp dword [ebp - 0x28], eax
jae 0x51ff40
mov ecx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00520070
jmp 0x520068
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x28]
je 0x51ff4e
mov byte [ebp - 1], 1
jmp 0x51ff52
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
jmp 0x520068
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
sub ecx, 1
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x40]
ja 0x520009
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00558250
add esp, 8
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jge 0x51ffca
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x3c], edx
jmp 0x520004
cmp dword [ebp - 0x48], 0
jle 0x51ffdb
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x40], eax
jmp 0x520004
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x24]
mov eax, dword [ebp - 0x2c]
mov cx, word [edx + eax*2]
mov word [ebp - 0x38], cx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x1c]
movzx ecx, word [ebp - 0x38]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x1c], edx
jmp 0x520009
jmp 0x51ff74
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.00534c00
add esp, 4
mov edx, dword [ebp - 8]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
push eax
call fcn.00534c00
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x520037
xor al, al
jmp 0x520068
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x18]
jb 0x52005b
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], edx
jae 0x52005b
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00520070
jmp 0x520068
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov al, 1
mov esp, ebp
pop ebp
ret