Function at 0x403d30
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40d504
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
mov eax, dword [esp + 0xd4]
push ebx
push ebp
xor ebx, ebx
mov ebp, ecx
push esi
mov esi, dword [esp + 0xcc]
cmp eax, ebx
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebx
jne 0x403d95
cmp esi, ebx
jne 0x403d95
mov eax, dword [esp + 0xdc]
cmp eax, ebx
je 0x40412e
push str.CZipArchive::ExtractFile___ERROR__nBufSize_lpszPath_is_null
push 0xffffffffffffffff
push 0xffffffffffffffff
call eax
add esp, 0xc
xor al, al
jmp 0x404208
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x50]
mov dword [esp + 0xc4], ebx
call fcn.00407030
mov edi, dword [esp + 0xcc]
lea eax, [esp + 0x50]
push edi
push eax
mov ecx, ebp
mov byte [esp + 0xcc], 1
call fcn.00402fb0
push esi
lea ecx, [esp + 0x14]
call fcn.004029da
mov eax, dword [esp + 0xd8]
mov byte [esp + 0xc4], 2
test eax, eax
jne 0x403e08
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x54]
call fcn.00407620
mov ebx, 1
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
mov byte [esp + 0xc4], 3
push eax
lea ecx, [esp + 0x20]
call fcn.004029da
mov esi, 5
test bl, 1
mov dword [esp + 0xc4], esi
je 0x403e33
and ebx, 0xfffffffe
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
push 0x4110ec
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov al, byte [esp + 0xd4]
test al, al
je 0x403e6f
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00403860
add esp, 8
or ebx, 2
mov dword [esp + 0x18], ebx
mov byte [esp + 0xc4], 6
jmp 0x403e93
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.004039c0
add esp, 8
or ebx, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc4], 7
push eax
lea eax, [esp + 0x38]
push 0x4110ec
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc8], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0xc4], 7
call sub.MFC42.DLL_CString::CString
test bl, 4
mov dword [esp + 0xc4], 6
je 0x403ee9
and ebx, 0xfffffffb
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
test bl, 2
mov dword [esp + 0xc4], esi
je 0x403efe
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0xdc]
xor ebx, ebx
cmp esi, ebx
je 0x403f44
push 0x4118e8
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, edi
lea eax, [esp + 0x14]
and edx, 0xffff
push ecx
push edx
push str.CZipArchive::ExtractFile___WATCH__Entering__uIndex_d__szFile_s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
add esp, 0x1c
push edi
mov ecx, ebp
call fcn.00403ce0
test al, al
je 0x403f8f
cmp esi, ebx
je 0x403f6d
push str.CZipArchive::ExtractFile___WATCH__ForceDirectory
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
mov edx, dword [esp + 0x1c]
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
add esp, 0x18
mov eax, dword [esp + 0x10]
push eax
call fcn.00403a90
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x4041bf
push esi
push edi
mov ecx, ebp
call fcn.004030c0
test al, al
jne 0x403fd0
and edi, 0xffff
lea eax, [esp + 0x14]
push edi
push str.CZipArchive::ExtractFile___ERROR__OpenFile_fail__uIndex_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp esi, ebx
je 0x4040e7
mov ecx, dword [esp + 0x14]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
add esp, 0xc
jmp 0x4040e7
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00403740
mov eax, dword [eax]
mov byte [esp + 0xcc], 9
push eax
call fcn.00403a90
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0x1021
push ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::CFile_1
cmp esi, ebx
mov byte [esp + 0xc4], 0xa
je 0x404031
lea ecx, [esp + 0x50]
call fcn.004075d0
mov dword [esp + 0x18], eax
jmp 0x404035
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0xe4]
push 0
push edx
lea ecx, [esp + 0x30]
call fcn.00405920
mov ebp, dword [esp + 0xe0]
mov eax, dword [esp + 0x30]
mov byte [esp + 0xc4], 0xb
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.00403330
mov edi, eax
test edi, edi
je 0x404095
mov ecx, dword [esp + 0x2c]
push edi
push ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::Write
add ebx, edi
test esi, esi
je 0x404095
mov edx, dword [esp + 0x18]
push ebp
push ebx
push edx
call esi
add esp, 0xc
test al, al
je 0x40409d
mov eax, dword [esp + 0x30]
cmp edi, eax
je 0x40405b
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x40]
push eax
call fcn.00403570
test eax, eax
jne 0x404135
test esi, esi
je 0x4040c5
push str.CZipArchive::ExtractFile___ERROR__CloseFile_fail
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], 0xa
call fcn.00405950
lea ecx, [esp + 0x40]
mov byte [esp + 0xc4], 5
call fcn.00402a16
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xc4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0xc4], 0
call fcn.004070b0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x404208
lea ecx, [esp + 0xa0]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0xa8]
mov byte [esp + 0xcc], 0xc
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x404189
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push str.CZipArchive::ExtractFile___WATCH__Extraction_succeeded_and_file_exist_:__s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
test esi, esi
je 0x404189
mov ecx, dword [esp + 0x14]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
call esi
add esp, 0xc
lea ecx, [esp + 0xa0]
mov byte [esp + 0xc4], 0xb
call fcn.00402a5e
lea ecx, [esp + 0x28]
mov byte [esp + 0xc4], 0xa
call fcn.00405950
lea ecx, [esp + 0x40]
mov byte [esp + 0xc4], 5
call fcn.00402a16
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xc4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0xc4], 0
call fcn.004070b0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb8
ret 0x1c