Function at 0x403aca
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f02
push 0
call esi
push 0x7f00
push 0
mov dword [0x40a56c], eax
call esi
mov esi, dword [ebp + 8]
mov dword [0x409ea0], eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403b38
lea eax, [ebp - 0x208]
push eax
call fcn.00401081
test eax, eax
je 0x403b2b
mov byte [eax], 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x8001
mov dword [0x409b60], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x41
push 0x40
mov dword [ebp - 4], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
mov ebx, 0x101
push ebx
push 0x40
mov dword [0x409d90], eax
call esi
push eax
call edi
push ebx
push 0x40
pop ebx
push ebx
mov dword [0x409d84], eax
call esi
push eax
call edi
push 0x200
push ebx
mov dword [0x409d88], eax
call esi
push eax
call edi
push 0x204
push ebx
mov dword [0x409d94], eax
call esi
push eax
call edi
push 0x1f4
push ebx
mov dword [0x409d8c], eax
call esi
push eax
call edi
push 0x105
mov ebx, 0x40a580
push ebx
push dword [ebp + 8]
mov dword [0x409d78], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call fcn.00401d7e
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x40a520
call fcn.00405d18
test eax, eax
pop ecx
pop ecx
jne 0x403e87
call fcn.004038e3
call fcn.00401dbf
test eax, eax
jne 0x403c0f
mov ecx, dword [0x4090cc]
jmp 0x403c99
mov ebx, dword [ebp + 0x10]
jmp 0x403c29
push 5
push str._info
push ebx
call fcn.00401187
add esp, 0xc
test eax, eax
je 0x403c73
inc ebx
cmp byte [ebx], 0
jne 0x403c14
xor ebx, ebx
xor eax, eax
inc ebx
cmp dword [ebp - 4], 0x80000000
mov dword [0x409d98], eax
jae 0x403c4d
cmp byte [ebp - 4], 4
jb 0x403c4d
mov dword [0x409d98], ebx
cmp dword [0x409d98], eax
jne 0x403c84
cmp byte [ebp - 4], 4
jae 0x403c84
mov ecx, dword [0x409d80]
mov edx, dword [0x409058]
push eax
push str.WinZip_Self_Extractor
add edx, ecx
push edx
push eax
jmp 0x403cae
push 0
push str.WinZip_Self_Extractor
push dword [0x409d94]
push 0
jmp 0x403cae
cmp word [0x4099e2], ax
mov dword [0x409d98], ebx
jne 0x403cb9
mov ecx, dword [0x409030]
mov eax, dword [0x409d80]
push 0x10
push str.WinZip_Self_Extractor
add ecx, eax
push ecx
push dword [0x409e90]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403e87
mov eax, dword [0x4099d4]
mov ecx, eax
and cl, 2
push dword [ebp + 8]
sub cl, 2
neg cl
sbb ecx, ecx
inc ecx
mov dword [0x409978], ecx
mov ecx, pe_nt_image_headers32
and eax, ecx
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [0x409d54], eax
call fcn.004047c0
mov ecx, dword [0x409bcc]
test ecx, ecx
je 0x403d69
mov edx, dword [0x4099d4]
mov ebx, edx
and ebx, 0x100000
mov eax, edx
and eax, 0x80000
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffd
add ebx, 4
neg eax
sbb eax, eax
and eax, ebx
test dl, 0x10
je 0x403d34
mov edx, dword [0x409d90]
cmp byte [edx], 0
je 0x403d34
or eax, 0x2000
push eax
push edx
jmp 0x403d3f
or eax, 0x2000
push eax
push str.WinZip_Self_Extractor
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x403e87
cmp eax, 2
je 0x403e87
push dword [0x409bcc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
inc ebx
test byte [0x4099d5], 2
push dword [ebp + 0x10]
je 0x403d7b
mov dword [0x409d74], ebx
call fcn.00401c48
pop ecx
push 0x400
push 0x42
call esi
mov esi, eax
push esi
call edi
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 8], eax
je 0x403dde
test eax, eax
je 0x403dde
mov ecx, dword [0x409d80]
mov edx, dword [0x409104]
push 0x400
add edx, ecx
push edx
push eax
call fcn.00401165
add esp, 0xc
push 0
push 0x402e21
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push esi
call edi
push esi
call ebx
call fcn.00401bef
push dword [0x409d90]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call edi
push dword [0x409d90]
call esi
push eax
call ebx
push dword [0x409d84]
call esi
push eax
call edi
push dword [0x409d84]
call esi
push eax
call ebx
push dword [0x409d88]
call esi
push eax
call edi
push dword [0x409d88]
call esi
push eax
call ebx
push dword [0x409d94]
call esi
push eax
call edi
push dword [0x409d94]
call esi
push eax
call ebx
push dword [0x409d8c]
call esi
push eax
call edi
push dword [0x409d8c]
call esi
push eax
call ebx
push dword [0x409d78]
call esi
push eax
call edi
push dword [0x409d78]
call esi
push eax
call ebx
mov eax, dword [0x409d80]
test eax, eax
je 0x403e87
push eax
call esi
push eax
call edi
push dword [0x409d80]
call esi
push eax
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10