Function at 0x100858c0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1018a328]
test eax, eax
jne 0x100858ea
push str.localeconv
call fcn.10086fc0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100858e5
or eax, 0xffffffff
mov dword [0x1018a328], 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 0x10085915
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call sub.msvcrt.dll____lc_codepage_func
mov edx, dword [0x10189fc0]
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 + 0x440], ecx
je 0x10085980
mov dword [esi + 0x440], ecx
lea ebx, [esi + 0x490]
mov eax, dword [edi]
test eax, eax
jne 0x10085955
xor ebx, ebx
jmp 0x1008597a
cmp byte [eax], 0
jne 0x10085961
mov ebx, 0x1008e720
jmp 0x1008597a
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 + 0x470], ebx
mov eax, dword [edi + 4]
cmp dword [esi + 0x444], eax
je 0x100859c7
mov dword [esi + 0x444], eax
lea ebx, [esi + 0x494]
mov eax, dword [edi + 4]
test eax, eax
jne 0x100859a2
xor ebx, ebx
jmp 0x100859c1
cmp byte [eax], 0
jne 0x100859ae
mov ebx, 0x1008e720
jmp 0x100859c1
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 + 0x474], ebx
mov eax, dword [edi + 8]
mov dword [esi + 0x448], eax
mov eax, dword [edi + 0xc]
cmp dword [esi + 0x44c], eax
je 0x10085a23
mov dword [esi + 0x44c], eax
cmp dword [edi + 0xc], 0
je 0x10085a19
lea edx, [esi + 0x498]
xor ecx, ecx
mov dword [esi + 0x478], edx
mov eax, dword [edi + 0xc]
mov al, byte [ecx + eax]
test al, al
je 0x10085a0d
cbw
inc ecx
mov word [edx], ax
add edx, 2
cmp ecx, 3
jne 0x100859f5
xor eax, eax
mov word [esi + ecx*2 + 0x498], ax
jmp 0x10085a23
mov dword [esi + 0x478], 0
mov eax, dword [edi + 0x10]
cmp dword [esi + 0x450], eax
je 0x10085a6e
mov dword [esi + 0x450], eax
lea ebx, [esi + 0x4a0]
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x10085a45
xor ebx, ebx
jmp 0x10085a68
cmp byte [eax], 0
jne 0x10085a51
mov ebx, 0x1008e720
jmp 0x10085a68
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 + 0x47c], ebx
mov eax, dword [edi + 0x14]
cmp dword [esi + 0x454], eax
je 0x10085ab9
mov dword [esi + 0x454], eax
lea ebx, [esi + 0x5a0]
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x10085a90
xor ebx, ebx
jmp 0x10085ab3
cmp byte [eax], 0
jne 0x10085a9c
mov ebx, 0x1008e720
jmp 0x10085ab3
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 + 0x480], ebx
mov eax, dword [edi + 0x18]
cmp dword [esi + 0x458], eax
je 0x10085b04
mov dword [esi + 0x458], eax
lea ebx, [esi + 0x6a0]
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x10085adb
xor ebx, ebx
jmp 0x10085afe
cmp byte [eax], 0
jne 0x10085ae7
mov ebx, 0x1008e720
jmp 0x10085afe
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 + 0x484], ebx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x45c], eax
mov eax, dword [edi + 0x20]
cmp dword [esi + 0x460], eax
je 0x10085b58
mov dword [esi + 0x460], eax
lea ebx, [esi + 0x7a0]
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x10085b2f
xor ebx, ebx
jmp 0x10085b52
cmp byte [eax], 0
jne 0x10085b3b
mov ebx, 0x1008e720
jmp 0x10085b52
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 + 0x488], ebx
mov eax, dword [edi + 0x24]
cmp dword [esi + 0x464], eax
je 0x10085ba3
mov dword [esi + 0x464], eax
lea ebx, [esi + 0x8a0]
mov eax, dword [edi + 0x24]
test eax, eax
jne 0x10085b7a
xor ebx, ebx
jmp 0x10085b9d
cmp byte [eax], 0
jne 0x10085b86
mov ebx, 0x1008e720
jmp 0x10085b9d
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 + 0x48c], ebx
movzx eax, byte [edi + 0x28]
mov byte [esi + 0x468], al
movzx eax, byte [edi + 0x29]
mov byte [esi + 0x469], al
movzx eax, byte [edi + 0x2a]
mov byte [esi + 0x46a], al
lea eax, [esi + 0x440]
movzx ecx, byte [edi + 0x2b]
mov byte [esi + 0x46b], cl
movzx ecx, byte [edi + 0x2c]
mov byte [esi + 0x46c], cl
movzx ecx, byte [edi + 0x2d]
mov byte [esi + 0x46d], cl
movzx ecx, byte [edi + 0x2e]
mov byte [esi + 0x46e], cl
movzx ecx, byte [edi + 0x2f]
mov byte [esi + 0x46f], cl
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret