Function at 0x419410
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x210]
push 0x208
mov edi, edx
mov dword [ebp - 0x218], ebx
mov esi, ecx
mov dword [ebp - 0x248], edi
push ebx
push eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x224], ebx
call fcn.00493600
xor eax, eax
mov dword [ebp - 0x258], edi
xor ecx, ecx
mov dword [ebp - 0x254], 0xffffffff
add esp, 0xc
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x23c], eax
test esi, esi
jne 0x4194a9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x419600
mov ecx, dword [0x4fad9c]
test ecx, ecx
jne 0x4194ce
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
cmp dword [0x4f2f34], eax
mov edi, 0xff
mov eax, 0xf8
setne dl
cmp dword [0x4f2e6c], ebx
cmovne eax, edi
sub esp, 8
lea edx, [edx*8 + 0xf7]
and dl, al
call fcn.004592c0
add esp, 8
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x419520
push dword [0x4fad9c]
push str.Could_not_open_image__s_as_an_ISO_9660_file_system
call fcn.004407e0
add esp, 8
jmp 0x419c65
push 0x54358c
push ecx
mov ecx, eax
call fcn.0045abb0
add esp, 8
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x419551
push 0x54358c
push str.Could_not_get_ISO_9660_file_information_for_file__s_n
call fcn.004407e0
add esp, 8
jmp 0x419c65
push 0x8010
call fcn.00499907
mov edi, eax
add esp, 4
mov dword [ebp - 0x23c], edi
test edi, edi
je 0x419c65
mov eax, dword [ebp - 0x228]
lea edx, [edi + 0x10]
mov ecx, dword [ebp - 0x22c]
push 0x800
mov dword [edi], ecx
mov eax, dword [eax + 0xd4]
push 0x10
push eax
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00459ad0
add esp, 0xc
cmp eax, 0x8000
je 0x4195bf
push dword [edi + 4]
push 0x54358c
push str.Error_reading_ISO_9660_file__s_at_LSN__lu_n
call fcn.004407e0
add esp, 0xc
jmp 0x419c65
mov edx, edi
mov ecx, 0x418f90
call fcn.0046a250
mov dword [0x52c120], eax
test eax, eax
jne 0x419600
push str.FAT_access_error
call fcn.004407e0
add esp, 4
jmp 0x419c65
call fcn.004407e0
add esp, 0xc
mov esi, dword [ebp - 0x21c]
jmp 0x419600
lea eax, [ebp - 0x210]
push eax
lea edx, [ebp - 0x258]
call fcn.0046a8b0
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x258], eax
test eax, eax
js 0x419c46
cmp word [ebp - 0x210], 0
jne 0x419663
push 1
push 1
call fcn.0049570f
mov ecx, esi
mov edi, eax
add esp, 8
mov dword [ebp - 0x218], edi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419650
sub ecx, edx
test edi, edi
je 0x419c29
jmp 0x4196d9
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
cmp esi, 1
jle 0x419c09
push 1
push esi
call fcn.0049570f
mov edi, eax
add esp, 8
test edi, edi
je 0x419bec
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
jne 0x419bc7
mov ecx, dword [ebp - 0x21c]
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4196d0
sub ecx, edx
mov edx, edi
lea esi, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x4196e0
sub edx, esi
lea eax, [edx + 2]
add eax, ecx
push eax
call fcn.00499907
mov ebx, eax
mov dword [ebp - 0x218], edi
add esp, 4
mov dword [ebp - 0x214], ebx
test ebx, ebx
je 0x419c37
mov ecx, dword [ebp - 0x21c]
mov edx, ebx
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x419717
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x419727
mov ax, word [0x4ce338]
mov edx, dword [ebp - 0x218]
mov esi, edx
mov word [edi], ax
mov al, byte [edx]
inc edx
test al, al
jne 0x419742
sub edx, esi
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x419750
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [ebp - 0xc], 0x10
je 0x4198a5
cmp byte [ebx], al
jne 0x4197a3
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ebx, eax
test esi, esi
je 0x419854
jmp 0x41984b
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp edi, 1
jg 0x4197d9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
mov ebx, eax
jmp 0x41985a
push 2
push edi
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
jne 0x419800
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
mov ebx, eax
jmp 0x41985a
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x419837
push esi
call fcn.004998ec
add esp, 4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call esi
mov ebx, eax
jmp 0x41985a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov ebx, eax
push esi
call fcn.004998ec
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x419885
call esi
cmp eax, 0xb7
je 0x419885
call fcn.00440bb0
mov ebx, dword [ebp - 0x214]
push eax
push ebx
push str.Could_not_create_directory__s:__s_n
jmp 0x4195e6
mov ebx, dword [ebp - 0x214]
mov ecx, ebx
mov edx, dword [ebp - 0x220]
call fcn.00419410
test eax, eax
je 0x419c58
jmp 0x419a77
mov esi, dword [ebp - 0x218]
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x234], eax
mov word [ebp - 0x230], ax
mov byte [ebp - 0x22e], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4198c5
sub ecx, edx
cmp ecx, 4
jbe 0x4198f1
lea eax, [esi - 5]
add eax, ecx
push str..conf
push eax
call fcn.004a2750
add esp, 8
mov byte [ebp - 0x233], 1
test eax, eax
je 0x4198f8
mov byte [ebp - 0x233], 0
push 0
push dword [ebp - 0x10]
xor edx, edx
xor ecx, ecx
call fcn.00440d90
push eax
push 0x54358c
push ebx
push str.Extracting:__s__from__s___s_
call fcn.004407e0
mov eax, dword [ebp - 0x214]
add esp, 0x18
movzx ebx, byte [ebp - 0xc]
cmp byte [eax], 0
jne 0x419939
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x41998b
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp edi, 1
jle 0x419989
push 2
push edi
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x419989
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x214]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x41998b
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
push 0
push ebx
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x224], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
je 0x4199bd
push esi
call fcn.004998ec
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0xffffffff
jne 0x4199e0
call fcn.00440bb0
mov ebx, dword [ebp - 0x214]
push eax
push ebx
push str.Could_not_create__s:__s
jmp 0x4195e6
mov eax, dword [ebp - 0x220]
xor esi, esi
mov edi, dword [0x52c120]
test eax, eax
jne 0x419a01
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x419a01
mov ebx, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
jmp 0x419a2c
cmp eax, 2
jl 0x419a9b
cmp eax, dword [edi + 0x14]
jge 0x419a9b
mov ecx, dword [edi + 0x10]
cdq
add eax, 0xfffffffe
adc edx, 0xffffffff
call fcn.00491da0
mov ebx, eax
mov ecx, edx
add ebx, dword [edi + 0x30]
adc ecx, dword [edi + 0x34]
mov eax, ebx
mov dword [ebp - 0x220], ecx
or eax, ecx
jne 0x419aa7
mov ebx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x419a59
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x224], 0xffffffff
cmp byte [ebp - 0x233], 0
je 0x419a77
lea eax, [ebp - 0x234]
xor edx, edx
push eax
push 0
mov ecx, ebx
call fcn.004145b0
add esp, 8
push ebx
call fcn.004998ec
add esp, 4
xor ebx, ebx
push dword [ebp - 0x218]
call fcn.004998ec
add esp, 4
mov dword [ebp - 0x218], ebx
jmp 0x4195ee
or ebx, 0xffffffff
or ecx, 0xffffffff
mov dword [ebp - 0x220], ecx
test ecx, ecx
ja 0x419a38
jb 0x419ab2
cmp ebx, 0xffffffff
jae 0x419a38
cmp esi, dword [ebp - 0x10]
jae 0x419a38
push ecx
push ebx
mov ecx, edi
call fcn.0046a160
mov edx, eax
add esp, 8
mov eax, dword [0x4fa958]
test edx, edx
mov ecx, 0xc003001b
cmove eax, ecx
mov dword [0x4fa958], eax
test eax, eax
js 0x419c52
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x238]
sub ecx, esi
cmp dword [0x4f4330], ecx
cmovb ecx, dword [0x4f4330]
push ecx
push eax
mov dword [ebp - 0x238], ecx
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.004417e0
add esp, 0xc
test eax, eax
je 0x419ba8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x238]
sub ecx, esi
cmp dword [0x4f4330], ecx
cmovb ecx, dword [0x4f4330]
cmp eax, ecx
jne 0x419ba8
push dword [ebp - 0x220]
mov ecx, dword [0x52c120]
add esi, eax
push ebx
mov dword [ebp - 0x244], esi
call fcn.0046a4c0
mov edi, dword [0x52c120]
add esp, 8
mov ecx, edx
mov ebx, eax
mov dword [ebp - 0x220], ecx
mov esi, dword [edi + 0x40]
mov eax, esi
mov dword [edi + 0x40], 0
test esi, esi
je 0x419b93
mov esi, dword [esi + 8]
push eax
call fcn.00495562
add esp, 4
mov eax, esi
test esi, esi
jne 0x419b75
mov edi, dword [0x52c120]
mov ecx, dword [ebp - 0x220]
mov esi, dword [ebp - 0x244]
mov eax, ebx
or eax, ecx
jne 0x419aa7
jmp 0x419a38
call fcn.00440bb0
mov ebx, dword [ebp - 0x214]
push eax
push ebx
push str.Could_not_write__s:__s
call fcn.004407e0
add esp, 0xc
jmp 0x419a3e
push edi
call fcn.004998ec
mov ecx, dword [ebp - 0x21c]
add esp, 4
mov dword [ebp - 0x218], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419be3
jmp 0x419c27
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x218], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419c00
jmp 0x419c27
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x218], 0
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419c20
sub ecx, edx
lea eax, [ecx + 2]
push eax
call fcn.00499907
add esp, 4
mov ebx, eax
push str.Could_not_allocate_buffer
call fcn.004407e0
add esp, 4
jmp 0x419c58
mov dword [ebp - 0x240], 1
jmp 0x419c58
mov ebx, dword [ebp - 0x214]
cmp dword [ebp - 0x248], 0
jne 0x419d49
mov edi, dword [0x52c120]
test edi, edi
je 0x419ca5
mov esi, dword [edi + 0x40]
mov eax, esi
mov dword [edi + 0x40], 0
test esi, esi
je 0x419c92
nop
mov esi, dword [esi + 8]
push eax
call fcn.00495562
add esp, 4
mov eax, esi
test esi, esi
jne 0x419c80
push edi
call fcn.004998ec
add esp, 4
mov dword [0x52c120], 0
mov esi, dword [ebp - 0x228]
test esi, esi
je 0x419ccf
mov eax, dword [esi + 0x1d]
test eax, eax
je 0x419cc6
push eax
call fcn.004998ec
add esp, 4
mov dword [esi + 0x1d], 0
push esi
call fcn.004998ec
add esp, 4
mov edi, dword [ebp - 0x22c]
test edi, edi
je 0x419d3b
mov esi, dword [edi + 4]
test esi, esi
je 0x419d2b
cmp dword [esi + 0x1c], 0
je 0x419d12
push str.closed_source...
call fcn.00459200
mov eax, dword [esi + 0x14]
add esp, 4
push dword [esi]
call eax
add esp, 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
push dword [esi]
mov eax, dword [esi + 0x18]
call eax
add esp, 4
mov dword [esi], 0
push esi
call fcn.004998ec
add esp, 4
push edi
mov dword [edi + 4], 0
call fcn.004998ec
add esp, 4
push dword [ebp - 0x23c]
call fcn.004998ec
add esp, 4
mov eax, dword [ebp - 0x224]
cmp eax, 0xffffffff
je 0x419d5f
test eax, eax
je 0x419d5f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x218]
call fcn.004998ec
add esp, 4
push ebx
call fcn.004998ec
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0x240]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret