Function at 0x651320
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x6515fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.006512cc
push eax
mov eax, edi
mov ecx, 1
mov edx, dword [0x40badc]
call fcn.004097ac
add esp, 4
mov eax, dword [edi]
call fcn.004095e4
push eax
push 0
mov eax, dword [edi]
push eax
call fcn.0061c8d0
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, dword [esi + 4]
call fcn.00407c00
cmp dword [esi + 8], 0
je 0x6513a6
push dword [ebp - 8]
push 0x651614
push dword [esi + 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00408174
call fcn.00420b50
lea ecx, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004205a8
mov eax, dword [edi]
add eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004095e4
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xchg ecx, eax
call fcn.00404530
add ebx, 0x50
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [esi + 0xc]
mov ecx, 4
call fcn.00404530
add ebx, 4
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [esi + 0x10]
mov ecx, 4
call fcn.00404530
add ebx, 4
movsx eax, byte [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [ebp - 0xc]
mov ecx, 4
call fcn.00404530
add ebx, 4
movzx eax, byte [esi + 0x15]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [ebp - 0xc]
mov ecx, 4
call fcn.00404530
add ebx, 4
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [esi + 0x18]
mov ecx, 4
call fcn.00404530
add ebx, 4
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [esi + 0x1c]
mov ecx, 4
call fcn.00404530
add ebx, 4
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [esi + 0x20]
mov ecx, 4
call fcn.00404530
add ebx, 4
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [esi + 0x24]
mov ecx, 4
call fcn.00404530
add ebx, 4
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [esi + 0x28]
mov ecx, 4
call fcn.00404530
add ebx, 4
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [esi + 0x2c]
mov ecx, 1
call fcn.00404530
inc ebx
movzx eax, byte [esi + 0x2d]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [ebp - 0xc]
mov ecx, 4
call fcn.00404530
add ebx, 4
movzx eax, byte [esi + 0x2e]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [ebp - 0xc]
mov ecx, 4
call fcn.00404530
add ebx, 4
movzx eax, byte [esi + 0x2f]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [ebp - 0xc]
mov ecx, 4
call fcn.00404530
add ebx, 4
mov eax, dword [edi]
add eax, ebx
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, dword [esi + 0x30]
call fcn.00648234
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x30]
call fcn.00648218
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
xchg ecx, eax
call fcn.00404530
mov eax, dword [esi + 0x30]
call fcn.00648218
add ebx, eax
mov eax, dword [edi]
add eax, ebx
mov edx, eax
lea eax, [esi + 0x34]
mov ecx, 4
call fcn.00404530
add ebx, 4
mov eax, dword [edi]
add eax, ebx
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x28]
mov eax, dword [esi + 0x58]
call fcn.0064e758
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x58]
call fcn.0064e724
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
xchg ecx, eax
call fcn.00404530
mov eax, dword [esi + 0x58]
call fcn.0064e724
add ebx, eax
mov eax, dword [edi]
add eax, ebx
mov ebx, eax
lea edx, [ebp - 0x2c]
mov eax, dword [esi + 0x5c]
call fcn.0064f0dc
mov edi, dword [ebp - 0x2c]
mov eax, dword [esi + 0x5c]
call fcn.0064f0d0
mov edx, ebx
mov ecx, edi
xchg ecx, eax
call fcn.00404530
mov eax, dword [esi + 0x5c]
call fcn.0064f0d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x651601
lea eax, [ebp - 0x2c]
mov edx, dword [0x40badc]
mov ecx, 3
call fcn.00408a6c
lea eax, [ebp - 8]
call fcn.00407b9c
lea eax, [ebp - 4]
mov edx, dword [0x40fcac]
call fcn.004098cc
ret