Function at 0x41dab0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x5040e8]
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ecx, 0x1010000
push 0x4f3d24
xor ebx, ebx
push str._mugen__.tmp
mov dword [eax + 0x5078], ebx
mov dword [eax + 0x404], ecx
mov dword [eax + 0x408], 0x1000000
mov dword [eax + 0x40c], ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
lea ebp, [ebx + 1]
cmp eax, ebx
je 0x41db1d
mov ecx, dword [0x5040e8]
push eax
mov dword [ecx + 0x400], ebp
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
push str._mugen__.tmp
call dword [sym.imp.MSVCR90.dll_remove]
add esp, 4
mov edx, dword [0x5040e8]
mov dword [edx + 0x8714], ebp
cmp dword [edx + 0x128c4], ebx
jne 0x41db87
fld qword [edx + 0x12890]
mov esi, dword [edx + 0x128b8]
fld qword [edx + 0x12888]
fxch st(1)
call fcn.004dc850
push eax
call fcn.004dc850
push eax
mov eax, esi
call fcn.0046b930
mov edx, dword [0x5040e8]
add esp, 8
mov dword [edx + 0x8730], eax
cmp eax, ebx
jne 0x41db87
call fcn.0041dee0
push str.Cant_create_screen_buffer._n
call fcn.0040c140
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [edx + 0x8730]
xor ecx, ecx
call fcn.0046ba90
push ebx
call dword [0x500b8c]
mov eax, dword [0x5040e8]
mov edx, dword [eax + 0x8730]
mov dword [eax + 0x8734], edx
mov eax, dword [eax + 0x12940]
shl eax, 0xa
add esp, 4
push eax
call fcn.0048c7b0
add esp, 4
mov dword [0x50473c], eax
cmp eax, ebx
jne 0x41dbe6
call fcn.0041dee0
push str.Cant_allocate_sprite_decompression_buffer._n
call fcn.0040c140
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x5040e8]
mov esi, dword [eax + 0x1293c]
call fcn.00464ca0
mov ecx, dword [0x5040e8]
mov dword [ecx + 0x8748], eax
cmp eax, ebx
jne 0x41dc22
call fcn.0041dee0
push str.Cant_create_priority_sprites_layer_1._n
call fcn.0040c140
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call fcn.00464e70
mov ecx, dword [0x5040e8]
mov dword [ecx + 0x8744], eax
cmp eax, ebx
jne 0x41dc53
call fcn.0041dee0
push str.Cant_create_persistent_animation_array._n
call fcn.0040c140
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ecx + 0x12938]
call fcn.0041e170
mov esi, dword [0x5040e8]
mov dword [esi + 0x8750], eax
cmp eax, ebx
jne 0x41dc8a
call fcn.0041dee0
push str.Cant_init_afterimages._n
call fcn.0040c140
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0xc
push ebp
call dword [sym.imp.MSVCR90.dll_calloc]
add esp, 8
cmp eax, ebx
jne 0x41dca0
mov dword [0x50410c], ebp
mov dword [esi + 0x874c], eax
cmp eax, ebx
jne 0x41dcc6
call fcn.0041dee0
push str.Cant_create_palgroup_array._n
call fcn.0040c140
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
add esi, 0x12154
mov edi, 0x20
call fcn.0046b770
test eax, eax
jne 0x41dce9
call fcn.0041dee0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x5040e8]
fldz
mov edx, dword [eax + 0x128dc]
mov dword [eax + 0x875c], edx
mov dword [eax + 0x10c1c], ebp
mov ecx, dword [str.system.def]
mov dword [eax + 0x10c28], ecx
mov edx, dword [0x4f3e0c]
mov dword [eax + 0x10c2c], edx
mov cx, word [0x4f3e10]
mov word [eax + 0x10c30], cx
mov dl, byte [0x4f3e12]
mov byte [eax + 0x10c32], dl
mov ecx, dword [str.data_]
mov dword [eax + 0x10e28], ecx
mov dx, word [0x4f174c]
fst dword [eax + 0x11f04]
or ecx, 0xffffffff
fst dword [eax + 0x11f00]
fst dword [eax + 0x11f20]
mov dword [eax + 0x11e9c], ecx
mov dword [eax + 0x12478], ecx
fstp dword [eax + 0x11f1c]
mov ecx, dword [eax + 0x1294c]
fld1
mov dword [eax + 0x12168], ecx
fstp dword [eax + 0x11f34]
add ecx, 4
push ebx
mov word [eax + 0x10e2c], dx
mov dword [eax + 0x11e98], ebx
mov dword [eax + 0x11ea4], ebx
mov dword [eax + 0x11ea0], ebx
mov dword [eax + 0x11f28], ebx
mov dword [eax + 0x12378], ebp
mov dword [eax + 0x1237c], ebp
mov dword [eax + 0x12380], ebx
mov dword [eax + 0x12384], ebx
mov dword [eax + 0x1216c], 4
mov dword [eax + 0x12164], ecx
mov dword [eax + 0x507c], ebp
mov dword [eax + 0x5080], 2
call dword [sym.imp.MSVCR90.dll__time64]
mov ecx, dword [0x5040e8]
add esp, 4
push eax
mov dword [esp + 0x1c], edx
mov dword [ecx + 0x11eb8], eax
call dword [sym.imp.MSVCR90.dll_srand]
mov edx, dword [0x5040e8]
mov eax, dword [edx + 0x11ebc]
add esp, 4
call fcn.00421990
mov eax, dword [0x5040e8]
mov ecx, dword [0x504094]
mov dword [eax + 0x130d0], ebp
mov dword [eax + 0x130e8], 0x10
cmp ecx, ebx
jne 0x41de42
xor ecx, ecx
mov dword [eax + 0x130e4], ecx
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ecx, dword [ecx + 0x10]
pop edi
pop esi
mov dword [eax + 0x130e4], ecx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret