Function at 0x405610
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x2c], eax
push 0x21fe
push 0x5d175743
mov edx, 0x10
mov ecx, 7
call fcn.00402800
add esp, 8
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 3
jge 0x405675
xor al, al
jmp 0x40594d
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
jmp 0x40568b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x1c]
jge 0x4057f6
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ecx + 0x40e074]
imul eax, edx, 3
add eax, 0x5c
cdq
mov ecx, 0x7f
idiv ecx
mov byte [ebp - 0x15], dl
mov edx, 1
shl edx, 0
movzx eax, byte [edx + 0x40e074]
imul eax, eax, 3
add eax, 0x5c
cdq
mov ecx, 0x7f
idiv ecx
mov byte [ebp - 0x14], dl
mov edx, 1
shl edx, 1
movzx eax, byte [edx + 0x40e074]
imul eax, eax, 3
add eax, 0x5c
cdq
mov ecx, 0x7f
idiv ecx
mov byte [ebp - 0x13], dl
mov edx, 1
imul eax, edx, 3
movzx ecx, byte [eax + 0x40e074]
imul eax, ecx, 3
add eax, 0x5c
cdq
mov ecx, 0x7f
idiv ecx
mov byte [ebp - 0x12], dl
mov edx, 1
shl edx, 2
movzx eax, byte [edx + 0x40e074]
imul eax, eax, 3
add eax, 0x5c
cdq
mov ecx, 0x7f
idiv ecx
mov byte [ebp - 0x11], dl
mov edx, 1
imul eax, edx, 5
movzx ecx, byte [eax + 0x40e074]
imul eax, ecx, 3
add eax, 0x5c
cdq
mov ecx, 0x7f
idiv ecx
mov byte [ebp - 0x10], dl
mov edx, 1
imul eax, edx, 6
movzx ecx, byte [eax + 0x40e074]
imul eax, ecx, 3
add eax, 0x5c
cdq
mov ecx, 0x7f
idiv ecx
mov byte [ebp - 0xf], dl
mov edx, 1
imul eax, edx, 7
movzx ecx, byte [eax + 0x40e074]
imul eax, ecx, 3
add eax, 0x5c
cdq
mov ecx, 0x7f
idiv ecx
mov byte [ebp - 0xe], dl
mov dl, byte [ebp - 0x15]
mov byte [ebp - 0x16], dl
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x15]
call fcn.00406090
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x3c], edx
push 0x8f84
push 0x9c3e576c
mov edx, 0x77
mov ecx, 1
call fcn.00402800
add esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0x40]
test eax, eax
jne 0x4057f1
mov byte [ebp - 1], 1
jmp 0x4057f6
jmp 0x405682
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x405805
xor al, al
jmp 0x40594d
push 0xc8
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0040d360
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4 + 4]
mov dword [ebp - 0x48], ecx
push 0xd318
push 0x4d86576c
mov edx, 0x19
mov ecx, 1
call fcn.00402800
add esp, 8
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call dword [ebp - 0x4c]
push 0xd2fd
push 0x606576c
mov edx, 0x78
mov ecx, 1
call fcn.00402800
add esp, 8
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x54]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, 2
imul eax, edx, 0
lea ecx, [ebp + eax - 0x12c]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x58], eax
push 0
push 0
mov edx, dword [ebp - 0x58]
push edx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 0x31]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, 2
imul eax, edx, 0
lea ecx, [ebp + eax - 0x12c]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0xd2fd
push 0x610416c
mov edx, 0x76
mov ecx, 1
call fcn.00402800
add esp, 8
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x20]
add eax, 0x31
push eax
call dword [ebp - 0x60]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
jg 0x405930
cmp dword [ebp - 0xc], 0x20
jge 0x405934
xor al, al
jmp 0x40594d
call fcn.00402210
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x31
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.00403030
mov al, 1
mov esp, ebp
pop ebp
ret