Function at 0x421a80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
mov dword [ebp - 0x4ac], eax
mov ecx, dword [ebp - 0x4ac]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x4ac]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov ebx, dword [0x471e30]
shl esi, 3
mov edx, dword [0x472eb0]
sub esi, ecx
shl esi, 2
mov dword [ebp - 0x4b0], ebx
mov eax, dword [esi + edx + 0x10]
xor ebx, ebx
mov ecx, dword [esi + edx + 0x18]
test eax, eax
je 0x421ae4
cmp ecx, 0xffffffff
je 0x421af3
mov esi, dword [0x578490]
lea edi, [ecx + ecx*2]
lea eax, [esi + edi*8]
call fcn.00421700
mov ebx, eax
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4ac]
mov dword [esp], eax
call fcn.00429280
test eax, eax
je 0x421d4c
mov edx, dword [ebp - 0x4ac]
mov dword [esp], edx
call fcn.00429450
mov dword [esp], eax
call fcn.0041e810
mov dword [ebp - 0x4b4], eax
mov ecx, dword [ebp - 0x4ac]
mov eax, dword [ebp - 0x4ac]
shl ecx, 3
sub ecx, eax
mov ebx, ecx
shl ebx, 6
mov dword [ebp - 0x4c4], ebx
mov edx, dword [0x472ea0]
add ebx, edx
cmp ebx, dword [ebp - 0x4b4]
je 0x421d3b
mov esi, dword [ebp - 0x4c4]
xor edi, edi
shl ecx, 2
mov eax, dword [ebp - 0x4c4]
mov ebx, dword [esi + edx + 0x10]
mov dword [ebp - 0x4c0], ebx
mov ebx, eax
mov dword [eax + edx + 0x10], edi
mov edi, dword [0x472eb0]
mov dword [ebp - 0x4c8], ecx
mov esi, dword [0x472ea0]
add ebx, esi
mov eax, ebx
lea esi, [ebp - 0x2e8]
call fcn.00415270
mov eax, dword [ebp - 0x4b4]
call fcn.00415270
mov dword [esp + 4], ebx
mov edx, 0x1c0
lea ebx, [ebp - 0x4a8]
mov dword [esp + 8], edx
mov dword [esp], esi
call sub.msvcrt.dll_memcpy
mov ecx, 0x1c0
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x4b4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [0x471280]
mov dword [esp], edx
call dword [sym.imp.mameplib.dll_options_set_datalist]
mov edx, ebx
mov eax, esi
call fcn.004132c0
test eax, eax
mov ebx, dword [ebp - 0x4c8]
sete cl
movzx eax, cl
mov dword [ebx + edi + 0x14], eax
mov esi, dword [0x472eb0]
mov edi, dword [ebx + esi + 0x14]
test edi, edi
setne cl
xor edx, edx
cmp dword [ebp - 0x4c0], 0
setne dl
test ecx, edx
jne 0x421df4
mov ebx, dword [0x472ea0]
mov ecx, dword [ebp - 0x4c0]
mov esi, dword [ebp - 0x4c4]
mov dword [esi + ebx + 0x10], ecx
mov edi, dword [ebp - 0x4b4]
test edi, edi
je 0x421d3b
mov ecx, dword [ebp - 0x4ac]
mov ebx, dword [sym.imp.mameplib.dll_drivers]
mov esi, dword [ebx + ecx*4]
mov ebx, 0x463e25
mov edx, dword [esi + 8]
mov dword [esp], edx
call fcn.00428e50
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x4b0]
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x128]
mov dword [esp + 8], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov ecx, dword [ebp - 0x4b0]
mov dword [esp], ecx
call sub.msvcrt.dll__mkdir
mov edx, dword [0x472eb0]
mov esi, dword [ebp - 0x4c8]
mov eax, dword [esi + edx + 0x14]
test eax, eax
je 0x421cc2
mov esi, dword [0x472ea0]
mov edx, dword [ebp - 0x4c4]
mov eax, dword [edx + esi + 0x10]
test eax, eax
je 0x421e1f
mov dword [esp], ebx
mov ecx, 0x463607
mov ebx, 0xffffffff
mov dword [esp + 4], ecx
call sub.msvcrt.dll_fopen
test eax, eax
mov esi, eax
je 0x421ae4
mov ebx, dword [0x471280]
mov dword [esp], ebx
call dword [sym.imp.mameplib.dll_options_set_datalist]
mov ebx, dword [ebp - 0x4ac]
mov ecx, dword [ebp - 0x4ac]
mov edx, dword [0x472ea0]
shl ebx, 3
sub ebx, ecx
shl ebx, 6
mov eax, ebx
add eax, edx
call fcn.0041d190
call dword [sym.imp.mameplib.dll_options_clear_output_mark]
mov eax, dword [0x472ea0]
mov edx, edi
add ebx, eax
mov eax, ebx
call fcn.0041fa20
mov dword [esp], esi
call dword [sym.imp.mameplib.dll_options_output_ini_file_marked]
mov dword [esp], esi
call sub.msvcrt.dll_fclose
xor ebx, ebx
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x4ac]
mov dword [esp], ebx
call fcn.00428ec0
mov dword [ebp - 0x4b8], eax
mov edi, dword [0x471140]
xor ecx, ecx
mov dword [ebp - 0x4bc], ecx
test edi, edi
jle 0x421dcd
mov esi, dword [0x578490]
mov dword [ebp - 0x4cc], esi
jmp 0x421d92
mov eax, edi
inc ebx
sub eax, esi
mov dword [ebp - 0x4bc], ebx
lea edi, [eax - 1]
test edi, edi
jle 0x421dd9
mov ebx, edi
mov ecx, dword [ebp - 0x4bc]
shr ebx, 0x1f
lea esi, [edi + ebx]
mov edx, dword [ebp - 0x4cc]
sar esi, 1
lea ebx, [esi + ecx]
lea eax, [ebx + ebx*2]
mov ecx, dword [edx + eax*8]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x4b8]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x421e1b
jge 0x421d80
mov edi, esi
jmp 0x421d8e
mov edi, dword [0x578490]
mov dword [ebp - 0x4cc], edi
mov eax, 0xffffffff
mov edx, dword [ebp - 0x4cc]
lea esi, [eax + eax*2]
lea eax, [edx + esi*8]
call fcn.0041df80
jmp 0x421b1f
mov edi, dword [sym.imp.mameplib.dll_drivers]
mov edx, dword [ebp - 0x4ac]
mov eax, dword [edi + edx*4]
mov ecx, dword [eax + 8]
mov dword [esp], str._s:_use_default_with_ips
mov dword [esp + 4], ecx
call fcn.00428ae0
jmp 0x421c25
mov eax, ebx
jmp 0x421dde
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll__unlink
jmp 0x421d3d