Function at 0x401f70
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440d82
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4545f0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x4545f0]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00411e58
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401fcc
push 0x80004005
call fcn.00401600
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x150], 0
call fcn.00411e58
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402001
push 0x80004005
call fcn.00401600
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x103
lea ecx, [esp + 0x39]
push 0
mov byte [esp + 0x158], 1
push ecx
mov byte [esp + 0x40], 0
call fcn.0042c680
add esp, 0xc
push 0x104
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
lea ecx, [esp + 0x14]
je 0x402065
movsx eax, byte [esp + 0x34]
push eax
push str._c:IzexTemp_
push ecx
call fcn.004034c0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
jmp 0x402076
push 0xc
push str.C:IzexTemp_
call fcn.00401930
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.004018b0
mov ebx, dword [esp + 0x18]
push 0
push ebx
call fcn.00429a78
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
cmp eax, 0xffffffff
je 0x4020c4
push 0
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], esp
mov dword [esp + 0x24], esp
push eax
call fcn.00401840
mov ecx, dword [esp + 0x28]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov ecx, esi
call fcn.00402320
push 0x64
call edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x64
call edi
mov eax, dword [esp + 0x14]
push esi
push 0x401f00
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push eax
mov dword [esp + 0x40], eax
call fcn.00401840
add eax, 0x10
mov dword [edi], eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push eax
mov byte [esp + 0x164], 2
mov dword [esp + 0x34], eax
call fcn.00401840
add esp, 4
add eax, 0x10
lea edx, [esi + 0x84]
mov dword [edi], eax
push edx
mov byte [esp + 0x164], 1
call fcn.00408530
mov edi, eax
lea eax, [esp + 0x18]
lea ecx, [esi + 0x78]
push eax
call fcn.004018b0
lea edx, [esp + 0x14]
lea ecx, [esi + 0x7c]
push edx
call fcn.004018b0
mov dword [esi + 0x80], edi
call fcn.00411e58
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402167
push 0x80004005
call fcn.00401600
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x150], 3
mov ecx, dword [esp + 0x14]
push edi
push ecx
push ebx
push str.___CNHCAChgIPToolApp::OnBnClickedExtractButton___:_sPath__s___sPath2__s___Extract_Resultret__d_
mov ebx, 0x4596f0
call fcn.0040d4c0
add esp, 0x10
cmp edi, 0x3ea
jne 0x40223f
push str.NHCAEnv.ini
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00403170
add esp, 0xc
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x28], vtable.CIni.0
mov dword [esp + 0x2c], 0
je 0x4021de
push eax
call fcn.0042ae45
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x150], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402206
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, str.HideUI
lea ecx, [esp + 0x28]
call fcn.00408090
test eax, eax
mov ecx, esi
je 0x402221
call fcn.00402b80
jmp 0x402226
call fcn.00402ae0
mov byte [esp + 0x150], 3
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40223f
push eax
call fcn.0040d874
add esp, 4
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov byte [esp + 0x150], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40226f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x150], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402294
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x150], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4022bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0042963c
mov esp, ebp
pop ebp
ret