Function at 0x651618
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00409930
xor eax, eax
push ebp
push 0x651925
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x50
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x40fcac]
call fcn.004097ac
add esp, 4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 0x50
call fcn.00404530
call fcn.00420b50
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00420ba0
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0xc]
call fcn.0061d308
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 0xc]
call fcn.00407c00
mov edx, dword [ebp - 0xc]
mov eax, 0x651944
call fcn.0040870c
test eax, eax
jle 0x651703
lea eax, [esi + 4]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x651944
call fcn.0040870c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.0040839c
mov edx, dword [ebp - 0xc]
mov eax, 0x651944
call fcn.0040870c
mov ecx, eax
lea eax, [ebp - 0xc]
mov edx, 1
call fcn.0040846c
lea eax, [esi + 8]
mov edx, dword [ebp - 0xc]
call fcn.00407bac
jmp 0x65170e
lea eax, [esi + 4]
mov edx, dword [ebp - 0xc]
call fcn.00407bac
add ebx, 0x50
lea edx, [esi + 0xc]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
lea edx, [esi + 0x10]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
movzx edx, byte [ebp - 0x10]
mov eax, esi
call fcn.00651aec
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
movzx edx, byte [ebp - 0x10]
mov eax, esi
call fcn.00651b4c
lea edx, [esi + 0x18]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
lea edx, [esi + 0x1c]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
lea edx, [esi + 0x20]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
lea edx, [esi + 0x24]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
lea edx, [esi + 0x28]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
lea edx, [esi + 0x2c]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 1
call fcn.00404530
inc ebx
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
movzx eax, byte [ebp - 0x10]
mov byte [esi + 0x2d], al
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
movzx eax, byte [ebp - 0x10]
mov byte [esi + 0x2e], al
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
movzx eax, byte [ebp - 0x10]
mov byte [esi + 0x2f], al
mov eax, edi
sub eax, ebx
push eax
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x30]
call fcn.00648344
mov eax, dword [esi + 0x30]
call fcn.00648218
add ebx, eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, ebx
mov ecx, 4
call fcn.00404530
add ebx, 4
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.006519f8
mov eax, edi
sub eax, ebx
push eax
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x58]
call fcn.0064e8c4
mov eax, dword [esi + 0x58]
call fcn.0064e724
add ebx, eax
sub edi, ebx
push edi
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x5c]
call fcn.0064f1b0
mov eax, dword [esi + 0x5c]
call fcn.0064f0d0
mov ebx, dword [esi + 0x5c]
mov eax, dword [ebx + 0x38]
push eax
lea eax, [ebp - 0x145]
push eax
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 4]
mov eax, dword [0x8e0fcc]
mov eax, dword [eax]
call fcn.00647d34
mov edx, dword [ebp - 0x61]
shl edx, 0xa
mov eax, dword [esi + 0x5c]
call fcn.0064ef6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65192c
lea eax, [ebp - 0x14c]
call fcn.00407b9c
lea eax, [ebp - 0xc]
call fcn.00407b9c
lea eax, [ebp - 8]
mov edx, dword [0x40fcac]
call fcn.004098cc
lea eax, [ebp - 4]
mov edx, dword [0x40badc]
call fcn.004098cc
ret