Function at 0x402470
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38c
mov eax, dword [0x424544]
xor eax, esp
mov dword [esp + 0x388], eax
push ebx
push esi
push edi
push str.IPMx
push 0x422051
call fcn.00414d49
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x14], esi
jne 0x402143
mov eax, 0x3039
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x388]
xor ecx, esp
call fcn.00413a92
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push esi
call ebx
push 0
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0
call esi
push str.IPMx
push 0x422051
call fcn.00414d49
mov edi, eax
add esp, 8
test edi, edi
je 0x402129
push edi
call ebx
push 0
push edi
push 0
call esi
push str.IPM.cab
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [0x42707c]
push 0xa
push 0x4b0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x402129
mov ecx, dword [0x42707c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402129
mov edx, dword [0x42707c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
call fcn.004054ed
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402129
add esi, 1
push 0x5d
push esi
call fcn.00415470
mov dword [esp + 0x14], eax
mov byte [eax], 0
mov eax, esi
add esp, 8
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402200
sub eax, esi
push edi
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28c]
push 0x104
push eax
call fcn.00413b2f
add esp, 0xc
lea ecx, [esp + 0x288]
push ecx
lea edx, [esp + 0x184]
push 0x104
push edx
call fcn.00413b2f
add esp, 0xc
lea eax, [esp + 0x180]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0
lea ecx, [esp + 0x184]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x2a0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
mov dword [esp + 0x28], 0
je 0x402129
sub ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x2c]
push eax
sub ebx, 2
push ebx
add ecx, 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x427078], 0
jne 0x4022ce
call fcn.004040a0
mov edx, dword [esp + 0x14]
push edx
mov dword [0x427070], 0x401a10
call fcn.004010e0
mov eax, dword [0x42707c]
push str.EXENAME
push 0x4bc
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x42707c]
mov esi, eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x402343
mov edx, dword [0x42707c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
call fcn.004054ed
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x402343
push eax
push 0x104
push 0x427188
call fcn.00413b2f
add esp, 0xc
mov esi, dword [esp + 0x14]
push esi
lea eax, [esp + 0x7c]
push 0x104
push eax
call fcn.00413b2f
add esp, 0xc
push 0x427188
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x44
lea edx, [esp + 0x34]
push 0
push edx
call fcn.004192e0
xor eax, eax
add esp, 0xc
push 0x4220d0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x7c]
push 0x104
push eax
mov dword [esp + 0x3c], 0x44
call fcn.0041552e
mov ecx, dword [0x427074]
add esp, 0xc
push ecx
lea edx, [esp + 0x7c]
push 0x104
push edx
call fcn.0041552e
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x98]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp byte [0x427078], 0
jne 0x40240d
mov eax, dword [0x427184]
test eax, eax
je 0x40240d
push 0
push 0
push 0xdc5
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov ecx, dword [esp + 0x1c]
push ecx
call ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push edi
call ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push edi
call fcn.00402b10
call fcn.00402800
add esp, 0x1c
push esi
call ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push esi
call fcn.00402b10
call fcn.00402800
add esp, 0x1c
push edi
call fcn.00413aa1
add esp, 4
push esi
call fcn.00413aa1
mov ecx, dword [esp + 0x398]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413a92
mov esp, ebp
pop ebp
ret