Function at 0x4073c0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x40e5bc]
test eax, eax
jne 0x4073ea
push str.localeconv
call fcn.00406990
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4073e5
or eax, 0xffffffff
mov dword [0x40e5bc], eax
push edi
call eax
mov ecx, dword fs:[0x18]
mov edi, eax
mov ecx, dword [ecx + 0x30]
mov edx, dword [ecx + 0xa4]
shl edx, 0x10
or edx, dword [ecx + 0xa8]
cmp edx, 0x60001
jb 0x407415
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call sub.msvcrt.dll____lc_codepage_func
mov edx, dword [0x40e5d8]
mov ecx, dword fs:[0x2c]
mov dword [ebp - 4], eax
mov esi, dword [ecx + edx*4]
mov ecx, dword [edi]
mov edx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [esi + 8], ecx
je 0x407480
mov dword [esi + 8], ecx
lea ebx, [esi + 0x58]
mov eax, dword [edi]
test eax, eax
jne 0x407455
xor ebx, ebx
jmp 0x40747a
cmp byte [eax], 0
jne 0x407461
mov ebx, 0x40d1c4
jmp 0x40747a
push 1
push ebx
push 0xffffffffffffffff
push eax
push 9
push dword [ebp - 4]
call edx
mov edx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [esi + 0x38], ebx
mov eax, dword [edi + 4]
cmp dword [esi + 0xc], eax
je 0x4074c7
mov dword [esi + 0xc], eax
lea ebx, [esi + 0x5c]
mov eax, dword [edi + 4]
test eax, eax
jne 0x4074a2
xor ebx, ebx
jmp 0x4074c1
cmp byte [eax], 0
jne 0x4074ae
mov ebx, 0x40d1c4
jmp 0x4074c1
push 1
push ebx
push 0xffffffffffffffff
push eax
push 9
push dword [ebp - 4]
call edx
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [esi + 0x3c], ebx
mov eax, dword [edi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0xc]
cmp dword [esi + 0x14], eax
je 0x407523
mov dword [esi + 0x14], eax
cmp dword [edi + 0xc], 0
je 0x407519
lea edx, [esi + 0x60]
xor ecx, ecx
mov dword [esi + 0x40], edx
mov eax, dword [edi + 0xc]
mov al, byte [ecx + eax]
test al, al
je 0x40750d
cbw
inc ecx
mov word [edx], ax
add edx, 2
cmp ecx, 3
jne 0x4074f5
xor eax, eax
mov word [esi + ecx*2 + 0x60], ax
jmp 0x407523
mov dword [esi + 0x40], 0
mov eax, dword [edi + 0x10]
cmp dword [esi + 0x18], eax
je 0x40756e
mov dword [esi + 0x18], eax
lea ebx, [esi + 0x68]
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x407545
xor ebx, ebx
jmp 0x407568
cmp byte [eax], 0
jne 0x407551
mov ebx, 0x40d1c4
jmp 0x407568
push 0x7f
push ebx
push 0xffffffffffffffff
push eax
push 9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [esi + 0x44], ebx
mov eax, dword [edi + 0x14]
cmp dword [esi + 0x1c], eax
je 0x4075b9
mov dword [esi + 0x1c], eax
lea ebx, [esi + 0x168]
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x407590
xor ebx, ebx
jmp 0x4075b3
cmp byte [eax], 0
jne 0x40759c
mov ebx, 0x40d1c4
jmp 0x4075b3
push 0x7f
push ebx
push 0xffffffffffffffff
push eax
push 9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [esi + 0x48], ebx
mov eax, dword [edi + 0x18]
cmp dword [esi + 0x20], eax
je 0x407604
mov dword [esi + 0x20], eax
lea ebx, [esi + 0x268]
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x4075db
xor ebx, ebx
jmp 0x4075fe
cmp byte [eax], 0
jne 0x4075e7
mov ebx, 0x40d1c4
jmp 0x4075fe
push 0x7f
push ebx
push 0xffffffffffffffff
push eax
push 9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [esi + 0x4c], ebx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x20]
cmp dword [esi + 0x28], eax
je 0x407658
mov dword [esi + 0x28], eax
lea ebx, [esi + 0x368]
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x40762f
xor ebx, ebx
jmp 0x407652
cmp byte [eax], 0
jne 0x40763b
mov ebx, 0x40d1c4
jmp 0x407652
push 0x7f
push ebx
push 0xffffffffffffffff
push eax
push 9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [esi + 0x50], ebx
mov eax, dword [edi + 0x24]
cmp dword [esi + 0x2c], eax
je 0x4076a3
mov dword [esi + 0x2c], eax
lea ebx, [esi + 0x468]
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x40767a
xor ebx, ebx
jmp 0x40769d
cmp byte [eax], 0
jne 0x407686
mov ebx, 0x40d1c4
jmp 0x40769d
push 0x7f
push ebx
push 0xffffffffffffffff
push eax
push 9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov word [ebx + eax*2], cx
mov dword [esi + 0x54], ebx
movzx eax, byte [edi + 0x28]
mov byte [esi + 0x30], al
movzx eax, byte [edi + 0x29]
mov byte [esi + 0x31], al
movzx eax, byte [edi + 0x2a]
mov byte [esi + 0x32], al
lea eax, [esi + 8]
movzx ecx, byte [edi + 0x2b]
mov byte [esi + 0x33], cl
movzx ecx, byte [edi + 0x2c]
mov byte [esi + 0x34], cl
movzx ecx, byte [edi + 0x2d]
mov byte [esi + 0x35], cl
movzx ecx, byte [edi + 0x2e]
mov byte [esi + 0x36], cl
movzx ecx, byte [edi + 0x2f]
mov byte [esi + 0x37], cl
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret