Function at 0x403366
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetACP]
push 1
cmp eax, 0x36a
pop esi
je 0x4033a8
cmp eax, 0x3a4
je 0x4033a8
cmp eax, 0x3a8
je 0x4033a8
cmp eax, 0x3b4
jbe 0x40339e
cmp eax, 0x3b6
jbe 0x4033a8
xor edi, edi
mov dword [0x408e70], edi
jmp 0x40341b
xor edi, edi
push 0x3c
lea eax, [ebp - 0x44]
push edi
push eax
mov dword [0x408e70], esi
call fcn.00401056
and byte [ebp - 0x30], 0
and byte [ebp - 0x2f], 0
and byte [ebp - 0x2e], 0
and byte [ebp - 0x2c], 0
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0xe
mov dword [ebp - 0x40], edi
push str.Helv
push eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov byte [ebp - 0x2d], 0x80
mov byte [ebp - 0x2b], 0x12
mov byte [ebp - 0x2a], 2
mov byte [ebp - 0x29], 2
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x44]
mov dword [0x408e70], esi
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x408e74], eax
mov dword [0x408e74], eax
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f02
push edi
call esi
push 0x7f00
push edi
mov dword [0x409728], eax
call esi
mov esi, dword [ebp + 8]
mov dword [0x409440], eax
lea eax, [ebp - 0x244]
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403481
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x245]
cmp byte [eax], 0x5c
je 0x403471
dec eax
jmp 0x403469
and byte [eax], 0
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x8001
mov dword [0x408cc4], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
push str.Shell32.dll
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test byte [0x4089ce], 2
mov dword [0x408eb0], eax
je 0x403509
cmp eax, edi
je 0x4034c9
push str.ShellExecuteEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x408eb4], eax
cmp dword [0x408eb4], edi
jne 0x403509
push edi
lea eax, [ebp - 4]
push edi
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x40
push str.WinZip_Self_Extractor
push dword [ebp - 4]
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, 0x101
push ebx
push 0x40
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
push 0x41
push 0x40
mov dword [0x408e88], eax
call esi
push eax
call edi
push ebx
push 0x40
mov dword [0x408ea4], eax
call esi
push eax
call edi
push ebx
push 0x40
pop ebx
mov dword [0x408e98], eax
push ebx
call esi
push eax
call edi
push 0x200
push ebx
mov dword [0x408e9c], eax
call esi
push eax
call edi
push 0x204
push ebx
mov dword [0x408ea8], eax
call esi
push eax
call edi
push 0x1f4
push ebx
mov dword [0x408ea0], eax
call esi
push eax
call edi
mov ebx, 0x4094a0
push 0x105
push ebx
mov dword [0x408e8c], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call fcn.00403285
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x4096e0
call fcn.00405c70
pop ecx
test eax, eax
pop ecx
jne 0x403865
call fcn.00402f40
call fcn.004032c6
test eax, eax
jne 0x4035d6
push 0x10
push str.WinZip_Self_Extractor
push 0x31
jmp 0x403661
mov ebx, dword [ebp + 0x10]
cmp byte [ebx], 0
je 0x403606
push 5
push str._info
push ebx
call fcn.00401028
add esp, 0xc
test eax, eax
je 0x4035f5
inc ebx
jmp 0x4035d9
push 0
push str.WinZip_Self_Extractor
push dword [0x408ea8]
push 0
jmp 0x40366d
xor ebx, ebx
cmp dword [ebp - 8], 0x80000000
mov dword [0x408eac], ebx
jae 0x403627
cmp byte [ebp - 8], 4
jb 0x403627
mov dword [0x408eac], 1
cmp dword [0x408eac], ebx
jne 0x403646
cmp byte [ebp - 8], 4
jae 0x403646
push ebx
push str.WinZip_Self_Extractor
push 0xe
call fcn.0040108f
push eax
push ebx
jmp 0x40366d
cmp word [0x4089da], bx
mov dword [0x408eac], 1
jne 0x403678
push 0x10
push str.WinZip_Self_Extractor
push ebx
call fcn.0040108f
push eax
push dword [0x409720]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403865
mov eax, dword [0x4089cc]
push dword [ebp + 8]
mov ecx, eax
and ecx, 0x40
sub cl, 0x40
neg cl
sbb ecx, ecx
inc ecx
mov dword [0x408e80], ecx
mov ecx, 0x100
and eax, ecx
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [0x408e50], eax
call fcn.0040468d
mov ecx, dword [0x408d2c]
cmp ecx, ebx
je 0x403722
mov edx, dword [0x4089cc]
mov ebx, edx
mov eax, edx
and ebx, 0x100000
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 0x4036f1
mov edx, dword [0x408ea4]
cmp byte [edx], 0
je 0x4036f1
or ah, 0x20
push eax
push edx
jmp 0x4036fa
or ah, 0x20
push eax
push str.WinZip_Self_Extractor
xor ebx, ebx
push ecx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x403865
cmp eax, 2
je 0x403865
push dword [0x408d2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test byte [0x4089cd], 2
je 0x403735
mov dword [0x408e7c], 1
push dword [ebp + 0x10]
call fcn.00403182
pop ecx
push 0x400
push 0x42
call esi
mov esi, eax
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 4], eax
je 0x403796
test eax, eax
je 0x403796
push 0x400
push 0x40
call fcn.0040108f
push eax
push dword [ebp - 4]
call fcn.00401000
add esp, 0xc
push 0
push 0x402658
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push esi
call edi
push esi
call ebx
call fcn.00403129
push dword [0x408e88]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call edi
push dword [0x408e88]
call esi
push eax
call ebx
push dword [0x408e98]
call esi
push eax
call edi
push dword [0x408e98]
call esi
push eax
call ebx
push dword [0x408e9c]
call esi
push eax
call edi
push dword [0x408e9c]
call esi
push eax
call ebx
push dword [0x408ea4]
call esi
push eax
call edi
push dword [0x408ea4]
call esi
push eax
call ebx
push dword [0x408ea8]
call esi
push eax
call edi
push dword [0x408ea8]
call esi
push eax
call ebx
push dword [0x408ea0]
call esi
push eax
call edi
push dword [0x408ea0]
call esi
push eax
call ebx
push dword [0x408e8c]
call esi
push eax
call edi
push dword [0x408e8c]
call esi
push eax
call ebx
mov eax, dword [0x408e94]
test eax, eax
je 0x403855
push eax
call esi
push eax
call edi
push dword [0x408e94]
call esi
push eax
call ebx
mov eax, dword [0x408eb0]
test eax, eax
je 0x403865
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10