Function at 0x40dd40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4210a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10
mov dword [esi + 0x88], 0x40e170
mov dword [esi + 0x8c], 0x40e250
mov dword [esi + 0x90], 0x40e310
mov dword [esi + 0x94], 0x40e2e0
mov dword [esi + 0x98], 0x40e360
mov dword [esi + 0x9c], 0x40e3c0
mov dword [esi + 0xa0], 0x40e3e0
mov dword [esi + 0xa4], 0x40e430
mov dword [esi + 0xa8], 0x40e470
mov dword [esi + 0xac], 0x40e580
mov dword [esi + 0xbc], 0x40e590
mov dword [esi + 0xb4], 0x40e660
mov dword [esi + 0xb0], 0x40e630
mov dword [esi + 0xb8], 0x40e6c0
mov dword [esi + 0xc0], 0x40e6f0
mov dword [esi + 0xc8], 0x40e780
mov dword [esi + 0xcc], 0x40e820
mov dword [esi + 0xc4], 0x40e8a0
mov dword [esi + 0xe4], 0x40eac0
mov dword [esi + 0xe8], 0x40eaf0
mov dword [esi + 0xe0], 0x40ebc0
mov dword [esi + 0xdc], 0x40ec20
mov dword [esi + 0xd0], 0x40eb10
mov dword [esi + 0xd4], 0x40eb50
call fcn.004121b0
mov ebx, eax
mov dword [esi + 0x150], ebx
push 0x4000
mov dword [ebp - 0x430], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [esi + 0x16c], 0x4000
call fcn.00412190
mov dword [esi + 0x164], eax
add esp, 8
mov eax, dword [esi + 0x120]
test eax, eax
je 0x40dec1
mov ecx, 0x41980a
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40deb8
test dl, dl
je 0x40deb4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40deb8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40de98
xor eax, eax
jmp 0x40debd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40ded4
push str.no_output_directory_specified_n
push dword [0x421018]
call fcn.00410f40
add esp, 8
mov eax, dword [esi + 0x120]
mov dword [ebx], eax
cmp dword [esi + 0x14c], 1
jne 0x40e0a0
lea ecx, [ebp - 0x428]
push ecx
push eax
call fcn.00415180
mov esi, dword [sym.imp.MSVCR120.dll__errno]
add esp, 8
mov edi, dword [sym.imp.MSVCR120.dll_strerror]
test eax, eax
jne 0x40e060
mov eax, dword [ebp - 0x422]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40e060
push dword [ebx]
call fcn.00415490
mov edi, eax
add esp, 4
test edi, edi
je 0x40e05a
mov byte [ebp - 0x429], 1
call esi
push edi
mov dword [eax], 0
call fcn.004155d0
add esp, 4
test eax, eax
je 0x40dfed
jmp 0x40df60
lea edx, [eax + 8]
mov ecx, 0x41da98
mov eax, edx
lea ebx, [ebx]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x40df90
test bl, bl
je 0x40df8c
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x40df90
add eax, 2
add ecx, 2
test bl, bl
jne 0x40df70
xor eax, eax
jmp 0x40df95
sbb eax, eax
or eax, 1
test eax, eax
je 0x40dfc9
mov eax, 0x41da9c
mov edi, edi
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x40dfc0
test cl, cl
je 0x40dfbc
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x40dfc0
add edx, 2
add eax, 2
test cl, cl
jne 0x40dfa0
xor eax, eax
jmp 0x40dfc5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40dfe0
call esi
push edi
mov dword [eax], 0
call fcn.004155d0
add esp, 4
test eax, eax
jne 0x40df60
jmp 0x40dfe7
mov byte [ebp - 0x429], 0
mov ebx, dword [ebp - 0x430]
call esi
cmp dword [eax], 0
je 0x40e014
call esi
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push dword [ebx]
push str.could_not_read_directory___s_:__s_n
push dword [0x421018]
call fcn.00410f40
add esp, 0x14
push edi
call fcn.004156d0
add esp, 4
test eax, eax
je 0x40e045
call esi
mov edi, dword [sym.imp.MSVCR120.dll_strerror]
push dword [eax]
call edi
push eax
push dword [ebx]
push str.could_not_close_directory___s_:__s_n
push dword [0x421018]
call fcn.00410f40
add esp, 0x14
jmp 0x40e04b
mov edi, dword [sym.imp.MSVCR120.dll_strerror]
cmp byte [ebp - 0x429], 0
jne 0x40e152
jmp 0x40e060
mov edi, dword [sym.imp.MSVCR120.dll_strerror]
push dword [ebx]
call dword [sym.imp.MSVCR120.dll__mkdir]
add esp, 4
test eax, eax
jns 0x40e152
call esi
push dword [eax]
call edi
push eax
push dword [ebx]
push str.could_not_create_directory___s_:__s_n
push dword [0x421018]
call fcn.00410f40
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004175a2
mov esp, ebp
pop ebp
ret
push str.toc.dat
lea eax, [ebp - 0x404]
push eax
push esi
call fcn.0040ec70
lea eax, [ebp - 0x404]
push 0x41c2a4
push eax
call fcn.00401320
mov ebx, dword [sym.imp.MSVCR120.dll__errno]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40e0f7
call ebx
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
lea eax, [ebp - 0x404]
push eax
push str.could_not_open_input_file___s_:__s_n
push dword [0x421018]
call fcn.00410f40
add esp, 0x14
mov eax, dword [ebp - 0x430]
push esi
mov dword [eax + 4], edi
mov dword [esi + 0x58], 3
call fcn.00406750
push esi
mov dword [esi + 0x58], 5
call fcn.00406d00
push edi
call fcn.00401700
add esp, 0xc
test eax, eax
je 0x40e145
call ebx
push dword [eax]
call dword [sym.imp.MSVCR120.dll_strerror]
push eax
push str.could_not_close_TOC_file:__s_n
push dword [0x421018]
call fcn.00410f40
add esp, 0x10
mov eax, dword [ebp - 0x430]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004175a2
mov esp, ebp
pop ebp
ret