Function at 0x40a430
Capabilities:
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
bt dword [0x40e1cc], 0
mov edx, str.localeconv
mov ecx, 0x411008
call fcn.0040a7e0
test eax, eax
jne 0x40a453
mov esp, ebp
pop ebp
ret
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
jae 0x40a766
push ebx
push esi
call sub.msvcrt.dll____lc_codepage_func
mov edx, dword [0x411f38]
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 + 0x18], ecx
je 0x40a4e8
mov dword [esi + 0x18], ecx
lea ebx, [esi + 0x68]
mov eax, dword [edi]
test eax, eax
jne 0x40a4bd
xor ebx, ebx
jmp 0x40a4e2
cmp byte [eax], 0
jne 0x40a4c9
mov ebx, 0x40e668
jmp 0x40a4e2
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 + 0x48], ebx
mov eax, dword [edi + 4]
cmp dword [esi + 0x1c], eax
je 0x40a52f
mov dword [esi + 0x1c], eax
lea ebx, [esi + 0x6c]
mov eax, dword [edi + 4]
test eax, eax
jne 0x40a50a
xor ebx, ebx
jmp 0x40a529
cmp byte [eax], 0
jne 0x40a516
mov ebx, 0x40e668
jmp 0x40a529
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 + 0x4c], ebx
mov eax, dword [edi + 8]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0xc]
cmp dword [esi + 0x24], eax
je 0x40a58e
mov dword [esi + 0x24], eax
cmp dword [edi + 0xc], 0
je 0x40a584
lea edx, [esi + 0x70]
xor ecx, ecx
mov dword [esi + 0x50], edx
lea ecx, [ecx]
mov eax, dword [edi + 0xc]
mov al, byte [ecx + eax]
test al, al
je 0x40a578
cbw
inc ecx
mov word [edx], ax
add edx, 2
cmp ecx, 3
jne 0x40a560
xor eax, eax
mov word [esi + ecx*2 + 0x70], ax
jmp 0x40a58e
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x10]
cmp dword [esi + 0x28], eax
je 0x40a5d9
mov dword [esi + 0x28], eax
lea ebx, [esi + 0x78]
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x40a5b0
xor ebx, ebx
jmp 0x40a5d3
cmp byte [eax], 0
jne 0x40a5bc
mov ebx, 0x40e668
jmp 0x40a5d3
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
mov eax, dword [edi + 0x14]
cmp dword [esi + 0x2c], eax
je 0x40a624
mov dword [esi + 0x2c], eax
lea ebx, [esi + 0x178]
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x40a5fb
xor ebx, ebx
jmp 0x40a61e
cmp byte [eax], 0
jne 0x40a607
mov ebx, 0x40e668
jmp 0x40a61e
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 + 0x58], ebx
mov eax, dword [edi + 0x18]
cmp dword [esi + 0x30], eax
je 0x40a66f
mov dword [esi + 0x30], eax
lea ebx, [esi + 0x278]
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x40a646
xor ebx, ebx
jmp 0x40a669
cmp byte [eax], 0
jne 0x40a652
mov ebx, 0x40e668
jmp 0x40a669
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 + 0x5c], ebx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x20]
cmp dword [esi + 0x38], eax
je 0x40a6c3
mov dword [esi + 0x38], eax
lea ebx, [esi + 0x378]
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x40a69a
xor ebx, ebx
jmp 0x40a6bd
cmp byte [eax], 0
jne 0x40a6a6
mov ebx, 0x40e668
jmp 0x40a6bd
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 + 0x60], ebx
mov eax, dword [edi + 0x24]
cmp dword [esi + 0x3c], eax
je 0x40a70e
mov dword [esi + 0x3c], eax
lea ebx, [esi + 0x478]
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x40a6e5
xor ebx, ebx
jmp 0x40a708
cmp byte [eax], 0
jne 0x40a6f1
mov ebx, 0x40e668
jmp 0x40a708
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 + 0x64], ebx
movzx eax, byte [edi + 0x28]
mov byte [esi + 0x40], al
movzx eax, byte [edi + 0x29]
mov byte [esi + 0x41], al
movzx eax, byte [edi + 0x2a]
mov byte [esi + 0x42], al
lea eax, [esi + 0x18]
movzx ecx, byte [edi + 0x2b]
mov byte [esi + 0x43], cl
movzx ecx, byte [edi + 0x2c]
mov byte [esi + 0x44], cl
movzx ecx, byte [edi + 0x2d]
mov byte [esi + 0x45], cl
movzx ecx, byte [edi + 0x2e]
mov byte [esi + 0x46], cl
movzx ecx, byte [edi + 0x2f]
mov byte [esi + 0x47], cl
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret