Function at 0x413807
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x230], ecx
push 0x208
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], ebx
mov edi, edx
mov dword [ebp - 0x23c], ebx
push ebx
push eax
mov dword [ebp - 0x248], edi
mov esi, ebx
mov dword [ebp - 0x22c], ebx
call fcn.00478bc0
or dword [ebp - 0x254], 0xffffffff
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x258], edi
movlpd qword [ebp - 0x250], xmm0
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x234], ebx
cmp dword [ebp - 0x230], ebx
jne 0x413890
or eax, 0xffffffff
jmp 0x413df1
test edi, edi
jne 0x4139a6
mov ecx, dword [0x4dca18]
test ecx, ecx
jne 0x4138a9
xor eax, eax
jmp 0x413df1
cmp dword [0x4d97a8], ebx
mov eax, 0xf8
push ecx
setne dl
cmp dword [0x4d8fec], ebx
push ecx
lea edi, [eax + 7]
cmovne eax, edi
lea edx, [edx*8 + 0xf7]
and dl, al
call fcn.0043f440
mov edi, eax
mov dword [ebp - 0x238], edi
pop ecx
pop ecx
test edi, edi
jne 0x4138f8
push dword [0x4dca18]
push str.Could_not_open_image__s_as_an_ISO_9660_file_system
call fcn.0042ed57
pop ecx
pop ecx
jmp 0x413d6a
mov edx, 0x522800
mov ecx, edi
call fcn.00440c50
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x41391a
push 0x522800
push str.Could_not_get_ISO_9660_file_information_for_file__s_n
jmp 0x4138ec
push 0x8010
call fcn.004812e1
mov ebx, eax
mov dword [ebp - 0x234], ebx
pop ecx
test ebx, ebx
je 0x413d6a
mov eax, dword [ebp - 0x224]
lea edx, [ebx + 0x10]
push 0x800
mov dword [ebx], edi
mov ecx, edi
push 0x10
mov eax, dword [eax + 0xd4]
and dword [ebx + 8], esi
and dword [ebx + 0xc], esi
push eax
mov dword [ebx + 4], eax
call fcn.0043fca0
add esp, 0xc
cmp eax, 0x8000
je 0x413982
push dword [ebx + 4]
push 0x522800
push str.Error_reading_ISO_9660_file__s_at_LSN__lu_n
call fcn.0042ed57
add esp, 0xc
jmp 0x413d6a
mov edx, ebx
mov ecx, 0x413474
call fcn.00450650
mov dword [0x50d1ac], eax
test eax, eax
jne 0x4139a6
push str.FAT_access_error
call fcn.0042ed57
jmp 0x4138f2
lea eax, [ebp - 0x210]
push eax
lea edx, [ebp - 0x258]
call fcn.00450d40
mov dword [ebp - 0x258], eax
pop ecx
test eax, eax
js 0x413d3e
cmp word [ebp - 0x210], 0
jne 0x4139ec
push 1
push 1
call fcn.0047b53f
mov esi, eax
mov dword [ebp - 0x214], esi
mov ebx, esi
pop ecx
pop ecx
test esi, esi
jne 0x413a56
jmp 0x413a4c
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
cmp esi, 1
jle 0x413a46
push 1
push esi
call fcn.0047b53f
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x413a44
xor ecx, ecx
lea eax, [ebp - 0x210]
push ecx
push ecx
push esi
push ebx
push 0xffffffffffffffff
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
je 0x413a50
push ebx
call fcn.004812c6
pop ecx
xor ebx, ebx
and dword [ebp - 0x214], ebx
xor esi, esi
jmp 0x413a5f
mov dword [ebp - 0x214], ebx
push ebx
call fcn.004816f0
pop ecx
mov esi, eax
mov edi, dword [ebp - 0x230]
push edi
call fcn.004816f0
add esi, 2
pop ecx
add eax, esi
push eax
call fcn.004812e1
mov esi, eax
pop ecx
test ebx, ebx
je 0x413e00
test esi, esi
je 0x413e00
push edi
push esi
call fcn.00486c30
push 0x4b4ab0
push esi
call fcn.00486c40
push ebx
push esi
call fcn.00486c40
add esp, 0x18
test byte [ebp - 0xc], 0x10
je 0x413b35
mov ecx, esi
call fcn.00403761
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21c], eax
test edi, edi
je 0x413ae5
push edi
call fcn.004812c6
mov eax, dword [ebp - 0x21c]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x218], 0
jne 0x413b1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413b1b
call fcn.0042fc51
push eax
push esi
push str.Could_not_create_directory__s:__s_n
call fcn.0042ed57
add esp, 0xc
jmp 0x413d3e
mov edx, dword [ebp - 0x258]
mov ecx, esi
call fcn.00413807
test eax, eax
je 0x413d55
jmp 0x413d28
xor eax, eax
lea edi, [ebp - 0x244]
stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004816f0
pop ecx
cmp eax, 4
jbe 0x413b6a
add eax, 0xfffffffb
add eax, ebx
push str..conf
push eax
call fcn.0048ad35
mov byte [ebp - 0x243], 1
pop ecx
pop ecx
test eax, eax
je 0x413b71
mov byte [ebp - 0x243], 0
push 0
push dword [ebp - 0x10]
xor edx, edx
xor ecx, ecx
call fcn.0042fdeb
push eax
push 0x522800
push esi
push str.Extracting:__s__from__s___s_
call fcn.0042ed57
movzx eax, byte [ebp - 0xc]
add esp, 0x14
push eax
push 2
push ecx
push ecx
mov ecx, esi
call fcn.0041023f
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x22c], edi
cmp edi, 0xffffffff
jne 0x413bc4
call fcn.0042fc51
push eax
push esi
push str.Could_not_create__s:__s
jmp 0x413b0e
mov edx, dword [ebp - 0x258]
mov ecx, dword [0x50d1ac]
and dword [ebp - 0x218], 0
call fcn.00450900
mov ecx, eax
mov dword [ebp - 0x220], eax
or ecx, edx
mov dword [ebp - 0x21c], edx
je 0x413cf7
test edx, edx
ja 0x413cf7
jb 0x413c05
cmp eax, 0xffffffff
jae 0x413cf7
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x10]
jae 0x413cf7
cmp dword [0x4dc5d0], 0
jne 0x413d55
mov ecx, dword [0x50d1ac]
push edx
push dword [ebp - 0x220]
call fcn.00450530
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x228]
sub edx, dword [ebp - 0x218]
cmp dword [0x4da38c], edx
cmovb edx, dword [0x4da38c]
add esp, 4
mov dword [ebp - 0x228], edx
push ecx
push edx
mov edx, eax
mov ecx, edi
call fcn.0043032f
add esp, 0xc
test eax, eax
je 0x413ce3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x218]
sub ecx, edx
cmp dword [0x4da38c], ecx
cmovb ecx, dword [0x4da38c]
cmp dword [ebp - 0x228], ecx
jne 0x413ce3
add edx, dword [ebp - 0x228]
mov ecx, dword [0x50d1ac]
mov dword [ebp - 0x218], edx
mov edx, dword [ebp - 0x21c]
push edx
push dword [ebp - 0x220]
call fcn.00450950
pop ecx
pop ecx
mov ecx, dword [0x50d1ac]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], edx
call fcn.00450620
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
or eax, edx
mov eax, dword [ebp - 0x220]
jne 0x413bf2
jmp 0x413cf7
call fcn.0042fc51
push eax
push esi
push str.Could_not_write__s:__s
call fcn.0042ed57
add esp, 0xc
test edi, edi
je 0x413d0b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov dword [ebp - 0x22c], eax
cmp byte [ebp - 0x243], 0
je 0x413d28
lea eax, [ebp - 0x244]
xor edx, edx
push eax
push 0
mov ecx, esi
call fcn.00410a23
pop ecx
pop ecx
push esi
call fcn.004812c6
pop ecx
push ebx
xor esi, esi
call fcn.004812c6
and dword [ebp - 0x214], esi
pop ecx
cmp dword [ebp - 0x258], 0
jge 0x4139a6
mov dword [ebp - 0x23c], 1
cmp dword [ebp - 0x248], 0
jne 0x413dc2
mov ebx, dword [ebp - 0x234]
mov edi, dword [ebp - 0x238]
mov ecx, dword [0x50d1ac]
test ecx, ecx
je 0x413d80
call fcn.004508c0
and dword [0x50d1ac], 0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x413d9d
push dword [eax + 0x1d]
call fcn.004812c6
mov eax, dword [ebp - 0x224]
pop ecx
and dword [eax + 0x1d], 0
push eax
call fcn.004812c6
pop ecx
push ebx
call fcn.004812c6
pop ecx
test edi, edi
je 0x413dc2
mov ecx, dword [edi + 4]
call fcn.00451f00
and dword [edi + 4], 0
push edi
call fcn.004812c6
pop ecx
mov eax, dword [ebp - 0x22c]
cmp eax, 0xffffffff
je 0x413dd8
test eax, eax
je 0x413dd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x214]
call fcn.004812c6
pop ecx
push esi
call fcn.004812c6
mov eax, dword [ebp - 0x23c]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret
push str.Could_not_allocate_buffer
call fcn.0042ed57
pop ecx
jmp 0x413d55