Function at 0x403169
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 0x4031aa
cmp eax, 0x3a4
je 0x4031aa
cmp eax, 0x3a8
je 0x4031aa
cmp eax, 0x3b4
jbe 0x4031a1
cmp eax, 0x3b6
jbe 0x4031aa
and dword [0x40b008], 0
jmp 0x40321d
xor esi, esi
push 0x3c
lea eax, [ebp - 0x44]
push esi
push eax
mov dword [0x40b008], 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 [0x40b008], edi
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x40b00c], eax
mov dword [0x40b00c], eax
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f02
push 0
call esi
push 0x7f00
push 0
mov dword [0x40b788], eax
call esi
mov esi, dword [ebp + 8]
mov dword [0x40b5d8], eax
lea eax, [ebp - 0x244]
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403285
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x245]
cmp byte [eax], 0x5c
je 0x403275
dec eax
jmp 0x40326d
and byte [eax], 0
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x8001
mov dword [0x40ace4], 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 [0x40b044], eax
je 0x4032ea
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push eax
call esi
push str.SHGetMalloc
mov dword [0x40b048], eax
push dword [0x40b044]
call esi
push str.SHGetPathFromIDList
mov dword [0x40b04c], eax
push dword [0x40b044]
call esi
mov dword [0x40b050], 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 [0x40b034], eax
push ebx
push 0x40
call esi
push eax
call edi
push ebx
push 0x40
pop ebx
mov dword [0x40b024], eax
push ebx
call esi
push eax
call edi
push 0x200
push ebx
mov dword [0x40b028], eax
call esi
push eax
call edi
push 0x204
push ebx
mov dword [0x40b038], eax
call esi
push eax
call edi
push 0x1f4
push ebx
mov dword [0x40b02c], eax
call esi
push eax
call edi
mov ebx, 0x40ad50
push 0x105
push ebx
mov dword [0x40b018], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
call fcn.004030a3
pop ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x40b740
call fcn.004054dc
pop ecx
test eax, eax
pop ecx
jne 0x4035cf
call fcn.00402d77
call fcn.004030e4
test eax, eax
jne 0x4033a7
push 0x10
push str.WinZip_Self_Extractor
push 0x27
jmp 0x40340d
mov ebx, dword [ebp + 0x10]
cmp byte [ebx], 0
je 0x4033d7
push 5
push str._info
push ebx
call fcn.00401028
add esp, 0xc
test eax, eax
je 0x4033c6
inc ebx
jmp 0x4033aa
push 0
push str.WinZip_Self_Extractor
push dword [0x40b038]
push 0
jmp 0x403419
xor ebx, ebx
cmp dword [ebp - 4], 0x80000000
mov dword [0x40b040], ebx
jae 0x4035d8
cmp byte [ebp - 4], 4
jb 0x4033fc
mov dword [0x40b040], 1
cmp word [0x40898a], bx
jne 0x403424
push 0x10
push str.WinZip_Self_Extractor
push ebx
call fcn.0040108f
push eax
push dword [0x40b780]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4035cf
mov eax, dword [0x40897c]
push dword [ebp + 8]
mov ecx, eax
and ecx, 2
sub cl, 2
neg cl
sbb ecx, ecx
inc ecx
mov dword [0x40891c], ecx
mov ecx, 0x100
and eax, ecx
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [0x40afe4], eax
call fcn.00403efa
mov ecx, dword [0x40ae58]
cmp ecx, ebx
je 0x4034ce
mov edx, dword [0x40897c]
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 0x40349d
mov edx, dword [0x40b034]
cmp byte [edx], 0
je 0x40349d
or ah, 0x20
push eax
push edx
jmp 0x4034a6
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 0x4035cf
cmp eax, 2
je 0x4035cf
push dword [0x40ae58]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test byte [0x40897d], 2
je 0x4034e1
mov dword [0x40b014], 1
push dword [ebp + 0x10]
call fcn.00402f8f
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 0x403542
test eax, eax
je 0x403542
push 0x400
push 0x34
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.00402f36
push dword [0x40b034]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call edi
push dword [0x40b034]
call esi
push eax
call ebx
push dword [0x40b038]
call esi
push eax
call edi
push dword [0x40b038]
call esi
push eax
call ebx
push dword [0x40b02c]
call esi
push eax
call edi
push dword [0x40b02c]
call esi
push eax
call ebx
push dword [0x40b018]
call esi
push eax
call edi
push dword [0x40b018]
call esi
push eax
call ebx
mov eax, dword [0x40b020]
test eax, eax
je 0x4035bf
push eax
call esi
push eax
call edi
push dword [0x40b020]
call esi
push eax
call ebx
mov eax, dword [0x40b044]
test eax, eax
je 0x4035cf
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 0x4033f2
push ebx
push str.WinZip_Self_Extractor
push 0xa
call fcn.0040108f
push eax
push ebx
jmp 0x403419