Function at 0x403181
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 edi
je 0x4031c2
cmp eax, 0x3a4
je 0x4031c2
cmp eax, 0x3a8
je 0x4031c2
cmp eax, 0x3b4
jbe 0x4031b9
cmp eax, 0x3b6
jbe 0x4031c2
and dword [0x408138], 0
jmp 0x403235
xor esi, esi
push 0x3c
lea eax, [ebp - 0x44]
push esi
push eax
mov dword [0x408138], edi
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], esi
push str.Helv
push eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
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 [0x408138], edi
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x40813c], eax
mov dword [0x40813c], eax
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f02
push 0
call esi
push 0x7f00
push 0
mov dword [0x4088a8], eax
call esi
mov esi, dword [ebp + 8]
mov dword [0x4086f8], eax
lea eax, [ebp - 0x244]
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40329d
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x245]
cmp byte [eax], 0x5c
je 0x40328d
dec eax
jmp 0x403285
and byte [eax], 0
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x8001
mov dword [0x407e14], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
push str.Shell32.dll
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x408174], eax
je 0x403302
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push eax
call esi
push str.SHGetMalloc
mov dword [0x408178], eax
push dword [0x408174]
call esi
push str.SHGetPathFromIDList
mov dword [0x40817c], eax
push dword [0x408174]
call esi
mov dword [0x408180], eax
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0x41
push 0x40
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
mov ebx, 0x101
mov dword [0x408164], eax
push ebx
push 0x40
call esi
push eax
call edi
push ebx
push 0x40
pop ebx
mov dword [0x408154], eax
push ebx
call esi
push eax
call edi
push 0x200
push ebx
mov dword [0x408158], eax
call esi
push eax
call edi
push 0x204
push ebx
mov dword [0x408168], eax
call esi
push eax
call edi
push 0x1f4
push ebx
mov dword [0x40815c], eax
call esi
push eax
call edi
mov ebx, 0x407e80
push 0x105
push ebx
mov dword [0x408148], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call fcn.004030a0
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x408860
call fcn.004054f4
pop ecx
test eax, eax
pop ecx
jne 0x4035e7
call fcn.00402d74
call fcn.004030e1
test eax, eax
jne 0x4033bf
push 0x10
push str.WinZip_Self_Extractor
push 0x27
jmp 0x403425
mov ebx, dword [ebp + 0x10]
cmp byte [ebx], 0
je 0x4033ef
push 5
push str._info
push ebx
call fcn.00401028
add esp, 0xc
test eax, eax
je 0x4033de
inc ebx
jmp 0x4033c2
push 0
push str.WinZip_Self_Extractor
push dword [0x408168]
push 0
jmp 0x403431
xor ebx, ebx
cmp dword [ebp - 4], 0x80000000
mov dword [0x408170], ebx
jae 0x4035f0
cmp byte [ebp - 4], 4
jb 0x403414
mov dword [0x408170], 1
cmp word [0x407b22], bx
jne 0x40343c
push 0x10
push str.WinZip_Self_Extractor
push ebx
call fcn.0040108f
push eax
push dword [0x4088a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4035e7
mov eax, dword [0x407b14]
push dword [ebp + 8]
mov ecx, eax
and ecx, 2
sub cl, 2
neg cl
sbb ecx, ecx
inc ecx
mov dword [0x407ab4], ecx
mov ecx, 0x100
and eax, ecx
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [0x408114], eax
call fcn.00403f12
mov ecx, dword [0x407f88]
cmp ecx, ebx
je 0x4034e6
mov edx, dword [0x407b14]
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 0x4034b5
mov edx, dword [0x408164]
cmp byte [edx], 0
je 0x4034b5
or ah, 0x20
push eax
push edx
jmp 0x4034be
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 0x4035e7
cmp eax, 2
je 0x4035e7
push dword [0x407f88]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test byte [0x407b15], 2
je 0x4034f9
mov dword [0x408144], 1
push dword [ebp + 0x10]
call fcn.00402f8c
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 - 8], eax
je 0x40355a
test eax, eax
je 0x40355a
push 0x400
push 0x35
call fcn.0040108f
push eax
push dword [ebp - 8]
call fcn.00401000
add esp, 0xc
push 0
push 0x402495
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.00402f33
push dword [0x408164]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call edi
push dword [0x408164]
call esi
push eax
call ebx
push dword [0x408168]
call esi
push eax
call edi
push dword [0x408168]
call esi
push eax
call ebx
push dword [0x40815c]
call esi
push eax
call edi
push dword [0x40815c]
call esi
push eax
call ebx
push dword [0x408148]
call esi
push eax
call edi
push dword [0x408148]
call esi
push eax
call ebx
mov eax, dword [0x408150]
test eax, eax
je 0x4035d7
push eax
call esi
push eax
call edi
push dword [0x408150]
call esi
push eax
call ebx
mov eax, dword [0x408174]
test eax, eax
je 0x4035e7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
cmp byte [ebp - 4], 4
jae 0x40340a
push ebx
push str.WinZip_Self_Extractor
push 0xa
call fcn.0040108f
push eax
push ebx
jmp 0x403431