Function at 0x42774c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x427fcc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffff7
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov eax, dword [ebp - 4]
mov byte [eax + 0x1e8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00462818
test al, al
jne 0x4277f3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x175], 0
jne 0x4277f3
xor ecx, ecx
mov edx, 0x2776
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_ShowZipMessage_qqri17System_AnsiString
jmp 0x427fa6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d8]
call fcn.00474c20
mov ebx, eax
add ebx, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1dc]
call fcn.00474c20
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e0]
call fcn.00474c20
add ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00474c20
add ebx, eax
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x28]
add eax, 3
test eax, eax
jns 0x427846
add eax, 3
sar eax, 2
shl eax, 2
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d8]
call fcn.00474c20
cmp eax, 0xff
jg 0x4278a3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1dc]
call fcn.00474c20
cmp eax, 0xff
jg 0x4278a3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e0]
call fcn.00474c20
cmp eax, 0xff
jg 0x4278a3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00474c20
cmp eax, 0xff
jle 0x4278e0
lea edx, [ebp - 0x150]
mov eax, dword [ebp - 0x28]
inc eax
call fcn.004623fc
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
mov edx, 0x427fe8
call fcn.00474c6c
mov ecx, dword [ebp - 0x14c]
mov edx, 0x2a31
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_ShowZipMessage_qqri17System_AnsiString
jmp 0x427fa6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
call fcn.00462818
test al, al
jne 0x427a5d
mov eax, dword [ebp - 4]
add eax, 0x164
mov edx, 0x428030
call fcn.004749bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
call fcn.00462818
test al, al
jne 0x427a5d
lea edx, [ebp - 0x158]
xor eax, eax
call fcn.00472f00
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.00462c58
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 4]
add eax, 0x164
mov ecx, 0x428044
call fcn.00474c6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
call fcn.00462818
test al, al
jne 0x427a5d
push 0x104
lea eax, [ebp - 0x132]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea eax, [ebp - 0x15c]
lea edx, [ebp - 0x132]
mov ecx, 0x105
call fcn.00474bd0
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 4]
add eax, 0x164
mov ecx, 0x428044
call fcn.00474c6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
call fcn.00462818
test al, al
jne 0x427a5d
push 0x104
lea eax, [ebp - 0x132]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x132]
mov ecx, 0x105
call fcn.00474bd0
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 4]
add eax, 0x164
mov ecx, 0x428044
call fcn.00474c6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
call fcn.00462818
test al, al
jne 0x427a5d
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x170]
mov eax, dword [ebp - 4]
add eax, 0x164
mov ecx, 0x428044
call fcn.00474c6c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x170], 0
je 0x427a49
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
call fcn.00462818
test al, al
jne 0x427a5d
xor ecx, ecx
mov edx, 0x2a32
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_ShowZipMessage_qqri17System_AnsiString
jmp 0x427fa6
xor eax, eax
push ebp
push 0x427a81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x28]
inc eax
call fcn.00472af8
mov dword [ebp - 0x2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x427aa4
mov eax, dword [0x502ce0]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.004a501c
mov edx, dword [ebp - 0x28]
inc edx
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
call fcn.004734d4
mov eax, dword [ebp - 0x2c]
mov byte [eax], 0x4d
mov eax, dword [ebp - 0x2c]
mov byte [eax + 1], 0x50
mov eax, dword [ebp - 0x2c]
mov byte [eax + 2], 0x56
mov byte [ebp - 0x2d], 0
mov eax, dword [ebp - 4]
test byte [eax + 0x52], 1
je 0x427ae7
mov byte [ebp - 0x2d], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x52], 2
je 0x427af4
or byte [ebp - 0x2d], 2
mov eax, dword [ebp - 4]
test byte [eax + 0x52], 8
je 0x427b01
or byte [ebp - 0x2d], 4
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x1d4]
dec al
je 0x427b14
dec al
je 0x427b1a
jmp 0x427b1e
or byte [ebp - 0x2d], 8
jmp 0x427b1e
or byte [ebp - 0x2d], 0x10
mov eax, dword [ebp - 4]
test byte [eax + 0x52], 0x10
jne 0x427b2b
or byte [ebp - 0x2d], 0x20
mov eax, dword [ebp - 4]
test byte [eax + 0x52], 4
je 0x427b38
or byte [ebp - 0x2d], 0x40
mov eax, dword [ebp - 4]
test byte [eax + 0x52], 0x20
je 0x427b45
or byte [ebp - 0x2d], 0x80
mov eax, dword [ebp - 0x2c]
mov dl, byte [ebp - 0x2d]
mov byte [eax + 3], dl
mov eax, dword [ebp - 0x2c]
mov byte [eax + 5], 1
mov al, byte [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov byte [edx + 6], al
mov ax, word [ebp - 0x28]
call fcn.0044e278
mov edx, dword [ebp - 0x2c]
mov byte [edx + 7], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1d8]
call fcn.00474c20
mov dword [ebp - 0x24], eax
mov al, byte [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov byte [edx + 8], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1d8]
mov eax, dword [ebp - 0x2c]
add eax, 9
call fcn.00463020
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1dc]
call fcn.00474c20
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov byte [edx + ecx + 9], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1dc]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
add eax, 0xa
call fcn.00463020
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1dc]
call fcn.00474c20
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e0]
call fcn.00474c20
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov byte [edx + ecx + 0xa], al
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1e0]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
add eax, 0xb
call fcn.00463020
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e0]
call fcn.00474c20
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00474c20
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov byte [edx + ecx + 0xb], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00474c20
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x22c]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
add eax, 0xc
call fcn.00463044
mov eax, dword [ebp - 4]
cmp byte [eax + 0x175], 0
je 0x427c76
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x58]
call fcn.00474a00
jmp 0x427cd9
lea edx, [ebp - 0x168]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
call fcn.00462dcc
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.00461f08
mov eax, dword [ebp - 0x164]
mov edx, 0x428058
call fcn.00474d64
je 0x427cc6
xor ecx, ecx
mov edx, 0x2a33
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_ShowZipMessage_qqri17System_AnsiString
mov eax, dword [ebp - 0x2c]
call fcn.00472b18
jmp 0x427fa6
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov edx, 0x428068
call fcn.00462bc4
mov eax, dword [ebp - 0x14]
call fcn.00462818
test al, al
je 0x427cf9
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x194]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_EraseFile_qqrx17System_AnsiString18Zipmstr_DeleteOpts
mov eax, dword [ebp - 0x14]
call fcn.004626e0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x427f12
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
mov edx, 0x20
call fcn.00462684
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x427d82
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_CopyBuffer_qqriii
mov dword [ebp - 8], eax
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00462764
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
call fcn.004627a8
cmp dword [ebp - 8], 0
jne 0x427d89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x230]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
jne 0x427d89
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_ReplaceIcon_qqrii
mov dword [ebp - 8], eax
jmp 0x427d89
mov dword [ebp - 8], 0xfffffffd
cmp dword [ebp - 8], 0
jne 0x427ef6
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00462738
cmp eax, dword [ebp - 0x28]
je 0x427dad
mov dword [ebp - 8], 0xfffffffe
cmp dword [ebp - 8], 0
jne 0x427ef6
mov eax, dword [ebp - 4]
cmp byte [eax + 0x175], 0
je 0x427e13
lea eax, [ebp - 0x148]
xor ecx, ecx
mov edx, 0x16
call fcn.004734d4
mov dword [ebp - 0x148], 0x6054b50
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x138], eax
lea edx, [ebp - 0x148]
mov ecx, 0x16
mov eax, dword [ebp - 0x10]
call fcn.00462738
cmp eax, 0x16
je 0x427ef6
mov dword [ebp - 8], 0xfffffffe
jmp 0x427ef6
xor eax, eax
push ebp
push 0x427ecb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x148]
mov cl, 1
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_CheckIfLastDisk_qqrr23Zipmstr_ZipEndOfCentralo
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c0]
xor ecx, ecx
xor edx, edx
call fcn.00462764
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1b4], 0
je 0x427e76
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c0]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_CopyBuffer_qqriii
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1b0]
mov dword [ebp - 0x18], eax
jmp 0x427ec1
mov eax, dword [ebp - 0x138]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c0]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_CopyBuffer_qqriii
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x427eb5
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x148]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_RWCentralDir_qqrirx23Zipmstr_ZipEndOfCentrali
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ac]
mov dword [ebp - 0x18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x427edc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c0], 0xffffffff
je 0x427ef6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c0]
call fcn.004627a8
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00462764
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
call fcn.004627a8
jmp 0x427f19
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp - 8], 0
jne 0x427f2b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x175], 0
jne 0x427f8a
cmp dword [ebp - 8], 0
jne 0x427f58
cmp dword [ebp - 0x1c], 0xffffffff
je 0x427f51
cmp dword [ebp - 0x18], 0xffffffff
je 0x427f51
cmp dword [ebp - 0x20], 0xffffffff
je 0x427f51
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
je 0x427f58
mov dword [ebp - 8], 0xfffffff7
cmp dword [ebp - 8], 0
jne 0x427f82
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x194]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x58]
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_EraseFile_qqrx17System_AnsiString18Zipmstr_DeleteOpts
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call sym.DnPatch.exe__Zipmstr_TZipMaster_SetFileName_qqr17System_AnsiString
jmp 0x427f8a
mov eax, dword [ebp - 0x14]
call fcn.00462b08
cmp dword [ebp - 0x2c], 0
je 0x427f98
mov eax, dword [ebp - 0x2c]
call fcn.00472b18
mov eax, dword [0x502ce0]
mov eax, dword [eax]
xor edx, edx
call fcn.004a501c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427fd3
lea eax, [ebp - 0x168]
mov edx, 8
call fcn.0047498c
lea eax, [ebp - 0x14]
call fcn.00474968
ret