Function at 0x420821
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x82
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x220]
push ebx
xor ebx, ebx
sub esp, 0x28c
cmp dword [ebp + 8], 0
mov dword [ebp - 0x22c], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x230], eax
je 0x420f48
test eax, eax
jne 0x4209c4
mov edx, dword [0x522ec8]
test edx, edx
je 0x420f68
cmp dword [0x48eb9c], 1
sbb eax, eax
and eax, 0xfffffff9
dec eax
cmp dword [0x48eb98], 1
mov dword [esp], edx
sbb ecx, ecx
and ecx, 0xfffffff8
dec ecx
and eax, ecx
movzx eax, al
mov dword [esp + 4], eax
call fcn.0047f017
mov dword [ebp - 0x254], eax
test eax, eax
jne 0x4208c4
mov eax, dword [0x522ec8]
mov dword [esp], str.Could_not_open_image__s_as_an_ISO_9660_file_system
mov dword [esp + 4], eax
jmp 0x4208f3
mov dword [esp + 4], 0x5106cc
mov eax, dword [ebp - 0x254]
mov dword [esp], eax
call fcn.0047f174
mov dword [ebp - 0x25c], eax
test eax, eax
jne 0x42090b
mov dword [esp + 4], 0x5106cc
mov dword [esp], str.Could_not_get_ISO_9660_file_information_for_file__s
call fcn.0043d9e0
xor ecx, ecx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x25c], ecx
jmp 0x420f51
mov dword [esp], 0x8010
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x24c], eax
test eax, eax
je 0x420f51
mov ecx, dword [ebp - 0x254]
xor edx, edx
mov dword [eax], ecx
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x24c]
mov eax, dword [eax + 0xd4]
mov dword [ecx + 8], edx
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], edx
mov dword [esp + 8], eax
mov eax, ecx
add eax, 0x10
mov dword [esp + 0xc], 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x254]
mov dword [esp], eax
call fcn.0047e3a6
cmp eax, 0x8000
mov eax, dword [ebp - 0x24c]
je 0x42099a
mov eax, dword [eax + 4]
mov dword [esp + 4], 0x5106cc
mov dword [esp], str.Error_reading_ISO_9660_file__s_at_LSN__lu
mov dword [esp + 8], eax
call fcn.0043d9e0
jmp 0x420f51
mov dword [esp + 4], eax
mov dword [esp], 0x41d1e3
call fcn.0047ab40
mov dword [0x5108c8], eax
test eax, eax
jne 0x4209d8
mov dword [esp], str.FAT_access_error
call fcn.0043d9e0
jmp 0x420f51
xor eax, eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x254], eax
xor eax, eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x230]
lea edi, [ebp - 0x220]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [0x5108c8]
mov dword [esp], eax
call fcn.0047aebd
mov dword [ebp - 0x230], eax
test eax, eax
js 0x420ea7
cmp word [ebp - 0x220], 0
jne 0x420a38
mov dword [esp + 4], 1
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov esi, eax
jmp 0x420ad4
xor eax, eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [esp + 8], edi
mov dword [esp], 0xfde9
mov dword [ebp - 0x258], eax
call eax
sub esp, 0x20
mov ebx, eax
cmp eax, 1
jle 0x420ad2
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov esi, eax
test eax, eax
je 0x420ad2
mov dword [esp + 8], edi
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp], 0xfde9
mov eax, dword [ebp - 0x258]
call eax
sub esp, 0x20
cmp ebx, eax
je 0x420ad4
mov dword [esp], esi
call sub.msvcrt.dll_free
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebx, eax
xor eax, eax
test esi, esi
je 0x420aef
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea eax, [eax + ebx + 2]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test esi, esi
je 0x420b05
test eax, eax
jne 0x420b16
mov dword [esp], str.Could_not_allocate_buffer
call fcn.0043d9e0
jmp 0x420ec0
mov eax, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x49b8e2
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
mov eax, ebx
test byte [ebp - 0x1c], 0x10
je 0x420be4
call fcn.0041dab1
mov edx, eax
xor eax, eax
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x258], edx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov edi, eax
push edx
push edx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [ebp - 0x258]
test edx, edx
je 0x420b91
mov dword [ebp - 0x258], eax
mov dword [esp], edx
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x258]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push eax
test edi, edi
jne 0x420bc5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x420bc5
call fcn.0043df77
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], str.Could_not_create_directory__s:__s
jmp 0x420cd9
mov eax, dword [ebp - 0x230]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00420821
test eax, eax
jne 0x420e93
jmp 0x420ec0
call fcn.0041dab1
mov dword [esp], eax
mov edi, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
mov dword [ebp - 0x258], eax
test edi, edi
je 0x420c07
mov dword [esp], edi
call sub.msvcrt.dll_free
cmp dword [ebp - 0x258], 0
jne 0x420e93
xor eax, eax
mov dword [ebp - 0x237], eax
mov dword [ebp - 0x234], eax
mov dword [esp], esi
call sub.msvcrt.dll_strlen
xor edx, edx
mov dword [ebp - 0x260], edx
cmp eax, 4
jbe 0x420c59
lea eax, [esi + eax - 5]
mov dword [esp + 4], str..conf
mov dword [esp], eax
call sub.msvcrt.dll__stricmp_1
test eax, eax
sete al
movzx eax, al
mov dword [ebp - 0x260], eax
mov al, byte [ebp - 0x260]
mov byte [ebp - 0x236], al
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
call fcn.0043e475
mov dword [esp + 8], 0x5106cc
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebx
mov dword [esp], str.Extracting:__s__from__s___s_
call fcn.0043d9e0
movzx eax, byte [ebp - 0x1c]
mov ecx, 1
mov dword [esp], 2
mov edx, 0xc0000000
mov dword [esp + 4], eax
mov eax, ebx
call fcn.0041dbe4
mov dword [ebp - 0x250], eax
inc eax
jne 0x420ce3
call fcn.0043df77
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 0x49bfe7
call fcn.0043d9e0
jmp 0x420ea7
mov eax, dword [ebp - 0x230]
xor edi, edi
mov dword [esp + 4], eax
mov eax, dword [0x5108c8]
mov dword [esp], eax
call fcn.0047a8bc
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x268]
mov edx, dword [ebp - 0x264]
mov ecx, 0xfffffffd
add eax, 0xffffffff
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
adc edx, 0xffffffff
mov dword [ebp - 0x26c], edx
cmp ecx, eax
mov eax, 0
sbb eax, dword [ebp - 0x26c]
jb 0x420e46
cmp edi, dword [ebp - 0x20]
jae 0x420e46
mov eax, dword [ebp - 0x268]
mov edx, dword [ebp - 0x264]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [0x5108c8]
mov dword [esp], eax
call fcn.0047a7f1
mov edx, eax
test eax, eax
jne 0x420d83
mov dword [0x4dfd80], 0xc003001b
jmp 0x420ec8
cmp dword [0x4dfd80], 0
js 0x420ec8
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x48fc1c]
sub eax, edi
cmp eax, ecx
cmova eax, ecx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x250]
mov dword [esp], eax
call fcn.0043ebc0
test eax, eax
je 0x420dea
mov eax, dword [ebp - 0x20]
mov edx, dword [0x48fc1c]
sub eax, edi
cmp eax, edx
cmova eax, edx
cmp eax, dword [ebp - 0x23c]
je 0x420e05
call fcn.0043df77
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], 0x49c001
call fcn.0043d9e0
jmp 0x420e46
mov edx, dword [ebp - 0x264]
add edi, eax
mov eax, dword [ebp - 0x268]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [0x5108c8]
mov dword [esp], eax
call fcn.0047a919
mov dword [ebp - 0x268], eax
mov eax, dword [0x5108c8]
mov dword [ebp - 0x264], edx
mov dword [esp], eax
call fcn.0047a7c3
jmp 0x420d08
mov eax, dword [ebp - 0x250]
dec eax
cmp eax, 0xfffffffd
ja 0x420e6e
mov eax, dword [ebp - 0x250]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
mov dword [ebp - 0x250], 0xffffffff
jmp 0x420e76
xor eax, eax
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x260], 0
je 0x420e93
lea eax, [ebp - 0x237]
xor ecx, ecx
xor edx, edx
mov dword [esp], eax
mov eax, ebx
call fcn.0041d31b
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_free
mov dword [esp], esi
xor esi, esi
call sub.msvcrt.dll_free
cmp dword [ebp - 0x230], 0
jns 0x4209e4
mov dword [ebp - 0x258], 1
jmp 0x420ec8
xor edi, edi
mov dword [ebp - 0x258], edi
cmp dword [ebp + 0xc], 0
jne 0x420f11
mov eax, dword [0x5108c8]
test eax, eax
je 0x420ee7
mov dword [esp], eax
call fcn.0047ad0c
xor ecx, ecx
mov dword [0x5108c8], ecx
mov eax, dword [ebp - 0x25c]
mov dword [esp], eax
call fcn.0047d3e4
mov eax, dword [ebp - 0x254]
mov dword [esp], eax
call fcn.0047e04a
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x250]
dec eax
cmp eax, 0xfffffffd
ja 0x420f2d
mov eax, dword [ebp - 0x250]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edx
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x258]
mov dword [ebp + 0xc], eax
jmp 0x420f68
mov dword [ebp + 0xc], 0xffffffff
jmp 0x420f68
xor eax, eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x250], eax
jmp 0x420ece
mov eax, dword [ebp + 0xc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret