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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6320bc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebx + 8]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x30]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0xc]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0xe]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x10]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x12]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x14]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x18]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x1c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x20]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x1a]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x16]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x18]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x32]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x34]
mov ecx, 2
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x38]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebx + 0x3c]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
cmp word [ebp - 0x1a], 0
jbe 0x631fde
movzx eax, word [ebp - 0x1a]
push eax
lea eax, [ebx + 0x2c]
mov ecx, 1
mov edx, dword [0x404b1c]
call fcn.0040cb30
add esp, 4
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x631f0d
sub eax, 4
mov eax, dword [eax]
lea edx, [ebx + 0x2c]
mov ecx, eax
mov eax, esi
call fcn.00471678
mov eax, dword [ebx + 0x2c]
call fcn.00619628
sub al, 1
jb 0x631f30
je 0x631f6c
dec al
je 0x631fa5
jmp 0x631ff4
call fcn.004328b8
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x631f4a
sub edi, 4
mov edi, dword [edi]
push edi
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00433dd4
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 8]
call fcn.0040a48c
jmp 0x631ff4
call fcn.00432878
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x631f86
sub edi, 4
mov edi, dword [edi]
push edi
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.00433dd4
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.0040a48c
jmp 0x631ff4
call fcn.00433f9c
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x631fbf
sub edi, 4
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
call fcn.00433dd4
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0x10]
call fcn.0040a48c
jmp 0x631ff4
lea eax, [ebx + 0x24]
call fcn.0040a0ac
lea eax, [ebx + 0x2c]
mov edx, dword [0x404b1c]
call fcn.0040cc54
mov eax, dword [ebx + 0x28]
movzx ecx, word [ebp - 0x16]
mov edx, esi
call fcn.006288ec
cmp word [ebp - 0x18], 0
jbe 0x63206d
movzx eax, word [ebp - 0x18]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x404b1c]
call fcn.0040cb30
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x632030
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 4]
mov ecx, eax
mov eax, esi
call fcn.00471678
call fcn.00432878
mov edi, eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x63204f
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00433dd4
lea eax, [ebx + 0x40]
mov edx, dword [ebp - 0x14]
call fcn.0040a48c
jmp 0x632075
lea eax, [ebx + 0x40]
call fcn.0040a0ac
mov eax, ebx
call fcn.0063191c
test al, al
jne 0x632091
mov dl, 1
mov eax, dword [0x61afb4]
call fcn.0061cb08
call fcn.00409768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6320c3
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040a10c
lea eax, [ebp - 4]
mov edx, dword [0x404b1c]
call fcn.0040cc54
pop eax
jmp eax