Function at 0x40ce00
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d466
mov eax, dword fs:[0]
push eax
sub esp, 0xce0
mov eax, dword [0x4c9230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xce4], ecx
xor eax, eax
mov word [ebp - 0x7c], ax
push 0x60
push 0
lea ecx, [ebp - 0x7a]
push ecx
call fcn.00469c10
add esp, 0xc
mov edx, 0x40
mov word [ebp - 0x7c], dx
mov eax, 0x32c8
mov word [ebp - 0x7a], ax
mov ecx, 0x32cb
mov word [ebp - 0x78], cx
mov byte [ebp - 0x29c], 0
push 0xff
push 0
lea edx, [ebp - 0x29b]
push edx
call fcn.00469c10
add esp, 0xc
mov dword [ebp - 0x2a4], 1
mov byte [ebp - 0x184], 0
push 0xff
push 0
lea eax, [ebp - 0x183]
push eax
call fcn.00469c10
add esp, 0xc
mov byte [ebp - 0x2a9], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x2a8], 0
mov byte [ebp - 0x29d], 0
mov byte [ebp - 0x199], 0
lea ecx, [ebp - 0x198]
call fcn.00431ff2
mov dword [ebp - 4], 0
push str.LSLOG_:__LS_Commansd_Start
lea ecx, [ebp - 0x29c]
push ecx
call fcn.0046f198
add esp, 8
push 1
push 1
lea edx, [ebp - 0x29c]
push edx
call fcn.00469b80
add esp, 4
push eax
lea eax, [ebp - 0x29c]
push eax
mov ecx, dword [ebp - 0xce4]
call fcn.00407130
mov ecx, dword [ebp - 0xce4]
cmp dword [ecx + 0x2d3ffc1], 0
jne 0x40cfa1
mov byte [ebp - 0xc00], 0
xor edx, edx
mov byte [ebp - 0xbff], dl
mov byte [ebp - 0xc00], 6
push 1
lea eax, [ebp - 0xc00]
push eax
push 1
mov ecx, dword [ebp - 0xce4]
call fcn.004059a0
mov byte [ebp - 0xc00], 0x4f
mov byte [ebp - 0xbff], 4
push 2
lea ecx, [ebp - 0xc00]
push ecx
push 1
mov ecx, dword [ebp - 0xce4]
call fcn.004059a0
mov dword [ebp - 0xc58], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.0043248a
mov eax, dword [ebp - 0xc58]
jmp 0x40db8d
push str.APPLICATION_SETTING
mov ecx, dword [ebp - 0xce4]
add ecx, 0x2d40050
call fcn.0041a000
push 1
push str.BgaSecsSwitch
mov ecx, dword [ebp - 0xce4]
add ecx, 0x2d40050
call fcn.0041a110
test eax, eax
jne 0x40d04a
mov byte [ebp - 0xc04], 0
xor edx, edx
mov byte [ebp - 0xc03], dl
mov byte [ebp - 0xc04], 6
push 1
lea eax, [ebp - 0xc04]
push eax
push 1
mov ecx, dword [ebp - 0xce4]
call fcn.004059a0
mov byte [ebp - 0xc04], 0x4f
mov byte [ebp - 0xc03], 4
push 2
lea ecx, [ebp - 0xc04]
push ecx
push 1
mov ecx, dword [ebp - 0xce4]
call fcn.004059a0
mov dword [ebp - 0xc5c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.0043248a
mov eax, dword [ebp - 0xc5c]
jmp 0x40db8d
mov byte [ebp - 0xba4], 0
push 0x103
push 0
lea edx, [ebp - 0xba3]
push edx
call fcn.00469c10
add esp, 0xc
mov eax, dword [ebp - 0xce4]
add eax, 0x3fee33
push eax
push str._sUpData
lea ecx, [ebp - 0xba4]
push ecx
call fcn.0046f198
add esp, 0xc
mov dword [ebp - 0x3dc], 0
mov dword [ebp - 0x3d8], 0
lea edx, [ebp - 0x3d4]
mov dword [ebp - 0xc64], edx
mov eax, dword [ebp - 0xc64]
mov dword [eax], 0
mov dword [eax + 4], 0
lea ecx, [ebp - 0x3cc]
mov dword [ebp - 0xc68], ecx
mov edx, dword [ebp - 0xc68]
mov dword [edx], 0
mov dword [edx + 4], 0
lea eax, [ebp - 0x3dc]
push eax
lea ecx, [ebp - 0xba4]
push ecx
call fcn.004328be
test eax, eax
jne 0x40d0ff
push 0
lea edx, [ebp - 0xba4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 0x914], 0
push 0x4f
push 0
lea eax, [ebp - 0x913]
push eax
call fcn.00469c10
add esp, 0xc
mov byte [ebp - 0xbf4], 0
push 0x4f
push 0
lea ecx, [ebp - 0xbf3]
push ecx
call fcn.00469c10
add esp, 0xc
push 0x100
push 0
lea edx, [ebp - 0x184]
push edx
call fcn.00469c10
add esp, 0xc
mov dword [ebp - 0x84], 2
push 0x20
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x184]
push ecx
call fcn.0046a590
add esp, 0xc
mov edx, dword [ebp - 0x84]
add edx, 0x20
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0xce4]
call fcn.0040dbb0
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0x914]
push edx
call fcn.0046fd70
add esp, 8
push 0x100
push 0
lea eax, [ebp - 0x184]
push eax
call fcn.00469c10
add esp, 0xc
push 0x20
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x184]
push edx
call fcn.0046a590
add esp, 0xc
mov eax, dword [ebp - 0x84]
add eax, 0x20
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x184]
push ecx
mov ecx, dword [ebp - 0xce4]
call fcn.0040dbb0
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0xbf4]
push eax
call fcn.0046fd70
add esp, 8
lea ecx, [ebp - 0xbf4]
push ecx
lea edx, [ebp - 0xba4]
push edx
push str._s_s.dat
lea eax, [ebp - 0x184]
push eax
call fcn.0046f198
add esp, 0x10
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x1001
lea edx, [ebp - 0x184]
push edx
lea ecx, [ebp - 0x198]
call fcn.00432054
test eax, eax
jne 0x40d2a2
push str.LSLOG_:__Err_part10
lea eax, [ebp - 0x29c]
push eax
call fcn.0046f198
add esp, 8
push 1
push 1
lea ecx, [ebp - 0x29c]
push ecx
call fcn.00469b80
add esp, 4
push eax
lea edx, [ebp - 0x29c]
push edx
mov ecx, dword [ebp - 0xce4]
call fcn.00407130
mov dword [ebp - 0x2a4], 0
jmp 0x40db28
mov byte [ebp - 0x2a9], 1
mov byte [ebp - 0xa94], 0
push 0x7f
push 0
lea eax, [ebp - 0xa93]
push eax
call fcn.00469c10
add esp, 0xc
lea ecx, [ebp - 0xbf4]
push ecx
lea edx, [ebp - 0x914]
push edx
push str._s_n_s_n
lea eax, [ebp - 0xa94]
push eax
call fcn.0046f198
add esp, 0x10
lea ecx, [ebp - 0xa94]
push ecx
lea ecx, [ebp - 0x198]
call fcn.00432251
mov dword [ebp - 0xa9c], 0
push 0x100
push 0
lea edx, [ebp - 0x184]
push edx
call fcn.00469c10
add esp, 0xc
push 4
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x184]
push ecx
call fcn.0046a590
add esp, 0xc
mov edx, dword [ebp - 0x84]
add edx, 4
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0xa9c]
push eax
push 0x4a5bec
lea ecx, [ebp - 0x184]
push ecx
call fcn.0046aeee
add esp, 0xc
mov edx, dword [ebp - 0xa9c]
push edx
push str._04d_n
lea eax, [ebp - 0xa94]
push eax
call fcn.0046f198
add esp, 0xc
lea ecx, [ebp - 0xa94]
push ecx
lea ecx, [ebp - 0x198]
call fcn.00432251
mov edx, dword [ebp - 0x84]
add edx, 1
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
add eax, 1
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2b0], 0
jmp 0x40d3cc
mov ecx, dword [ebp - 0x2b0]
add ecx, 1
mov dword [ebp - 0x2b0], ecx
cmp dword [ebp - 0x2b0], 2
jge 0x40d447
push 0x100
push 0
lea edx, [ebp - 0x184]
push edx
call fcn.00469c10
add esp, 0xc
push 0xe
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x84]
push eax
lea ecx, [ebp - 0x184]
push ecx
call fcn.0046a590
add esp, 0xc
mov edx, dword [ebp - 0x84]
add edx, 0xe
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x184]
push eax
push 0x4a5dd8
lea ecx, [ebp - 0xa94]
push ecx
call fcn.0046f198
add esp, 0xc
lea edx, [ebp - 0xa94]
push edx
lea ecx, [ebp - 0x198]
call fcn.00432251
jmp 0x40d3bd
mov byte [ebp - 0xa14], 0
push 0xff
push 0
lea eax, [ebp - 0xa13]
push eax
call fcn.00469c10
add esp, 0xc
lea ecx, [ebp - 0xa14]
push ecx
mov ecx, dword [ebp - 0xce4]
call fcn.004120e0
movzx edx, al
test edx, edx
jne 0x40d4c6
push str.LSLOG_:__Err_part10
lea eax, [ebp - 0x29c]
push eax
call fcn.0046f198
add esp, 8
push 1
push 1
lea ecx, [ebp - 0x29c]
push ecx
call fcn.00469b80
add esp, 4
push eax
lea edx, [ebp - 0x29c]
push edx
mov ecx, dword [ebp - 0xce4]
call fcn.00407130
mov dword [ebp - 0x2a4], 0
jmp 0x40db28
mov dword [ebp - 0xbfc], 0
xor eax, eax
mov dword [ebp - 0xbf8], eax
mov byte [ebp - 0x8c4], 0
push 0x4e1
push 0
lea ecx, [ebp - 0x8c3]
push ecx
call fcn.00469c10
add esp, 0xc
push 0x4e2
push 0
lea edx, [ebp - 0x8c4]
push edx
call fcn.00469c10
add esp, 0xc
mov dword [ebp - 0x2b0], 0
jmp 0x40d526
mov eax, dword [ebp - 0x2b0]
add eax, 1
mov dword [ebp - 0x2b0], eax
mov ecx, dword [ebp - 0x2b0]
cmp ecx, dword [ebp - 0xa9c]
jge 0x40d99f
push 0xffffffffffffffff
push 4
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xce4]
call fcn.00412360
mov ecx, dword [ebp - 0x84]
add ecx, 4
mov dword [ebp - 0x84], ecx
push 0xb
push 4
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xce4]
call fcn.00412360
mov dword [ebp - 0xc1c], eax
mov ecx, dword [ebp - 0x84]
add ecx, 4
mov dword [ebp - 0x84], ecx
mov byte [ebp - 0xc50], 0
push 0x31
push 0
lea edx, [ebp - 0xc4f]
push edx
call fcn.00469c10
add esp, 0xc
push 0x100
push 0
lea eax, [ebp - 0x184]
push eax
call fcn.00469c10
add esp, 0xc
push 0x20
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x84]
push ecx
lea edx, [ebp - 0x184]
push edx
call fcn.0046a590
add esp, 0xc
lea eax, [ebp - 0x184]
push eax
mov ecx, dword [ebp - 0xce4]
call fcn.0040dbb0
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0xc50]
push edx
call fcn.0046fd70
add esp, 8
mov eax, dword [ebp - 0x84]
add eax, 0x20
mov dword [ebp - 0x84], eax
mov dword [ebp - 0xc0c], 0
xor ecx, ecx
mov dword [ebp - 0xc08], ecx
push 0xffffffffffffffff
push 4
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xce4]
call fcn.00412360
mov dword [ebp - 0xc0c], eax
mov ecx, dword [ebp - 0x84]
add ecx, 4
mov dword [ebp - 0x84], ecx
push 0xffffffffffffffff
push 4
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xce4]
call fcn.00412360
mov dword [ebp - 0xc08], eax
mov ecx, dword [ebp - 0x84]
add ecx, 4
mov dword [ebp - 0x84], ecx
mov byte [ebp - 0xc15], 0xff
mov dword [ebp - 0xc54], 0
jmp 0x40d6a4
mov edx, dword [ebp - 0xc54]
add edx, 1
mov dword [ebp - 0xc54], edx
cmp dword [ebp - 0xc54], 0x100
jge 0x40d6de
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x84]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0xc54]
movzx eax, byte [ebp + edx - 0xa14]
cmp ecx, eax
jne 0x40d6dc
mov cl, byte [ebp - 0xc54]
mov byte [ebp - 0xc15], cl
jmp 0x40d6de
jmp 0x40d695
mov edx, dword [ebp - 0x84]
add edx, 1
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
add eax, 0x20
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
add ecx, 4
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
add edx, 2
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
add eax, 4
mov dword [ebp - 0x84], eax
mov dword [ebp - 0xc14], 0
xor ecx, ecx
mov dword [ebp - 0xc10], ecx
push 0xffffffffffffffff
push 4
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xce4]
call fcn.00412360
mov dword [ebp - 0xc14], eax
mov ecx, dword [ebp - 0x84]
add ecx, 4
mov dword [ebp - 0x84], ecx
push 0xffffffffffffffff
push 4
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xce4]
call fcn.00412360
mov dword [ebp - 0xc10], eax
mov ecx, dword [ebp - 0x84]
add ecx, 4
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0xbfc]
cmp edx, dword [ebp - 0xc14]
jge 0x40d7b5
mov eax, dword [ebp - 0xc14]
mov dword [ebp - 0xce8], eax
jmp 0x40d7c1
mov ecx, dword [ebp - 0xbfc]
mov dword [ebp - 0xce8], ecx
mov edx, dword [ebp - 0xce8]
mov dword [ebp - 0xbfc], edx
mov eax, dword [ebp - 0xbf8]
cmp eax, dword [ebp - 0xc10]
jge 0x40d7e9
mov ecx, dword [ebp - 0xc10]
mov dword [ebp - 0xcec], ecx
jmp 0x40d7f5
mov edx, dword [ebp - 0xbf8]
mov dword [ebp - 0xcec], edx
mov eax, dword [ebp - 0xcec]
mov dword [ebp - 0xbf8], eax
mov ecx, dword [ebp - 0x84]
add ecx, 0xe
mov dword [ebp - 0x84], ecx
mov byte [ebp - 0x29d], 0
mov dword [ebp - 0x2a8], 0
jmp 0x40d832
mov edx, dword [ebp - 0x2a8]
add edx, 1
mov dword [ebp - 0x2a8], edx
cmp dword [ebp - 0x2a8], 0x19
jge 0x40d8e5
mov eax, dword [ebp - 0x2a8]
imul eax, eax, 0x32
movsx ecx, byte [ebp + eax - 0x8c4]
test ecx, ecx
jne 0x40d8a0
movsx edx, byte [ebp - 0xc50]
test edx, edx
je 0x40d8a0
mov al, byte [ebp - 0x199]
add al, 1
mov byte [ebp - 0x199], al
mov ecx, dword [ebp - 0x2a8]
add ecx, 1
mov byte [ebp - 0x29d], cl
lea edx, [ebp - 0xc50]
push edx
mov eax, dword [ebp - 0x2a8]
imul eax, eax, 0x32
lea ecx, [ebp + eax - 0x8c4]
push ecx
call fcn.0046fd70
add esp, 8
jmp 0x40d8e5
lea edx, [ebp - 0xc50]
push edx
mov eax, dword [ebp - 0x2a8]
imul eax, eax, 0x32
lea ecx, [ebp + eax - 0x8c4]
push ecx
call fcn.0046fe90
add esp, 8
test eax, eax
jne 0x40d8e0
movsx edx, byte [ebp - 0xc50]
test edx, edx
je 0x40d8e0
mov eax, dword [ebp - 0x2a8]
add eax, 1
mov byte [ebp - 0x29d], al
jmp 0x40d8e5
jmp 0x40d823
movzx ecx, byte [ebp - 0x29d]
test ecx, ecx
je 0x40d902
cmp dword [ebp - 0xc1c], 0xb
je 0x40d902
cmp dword [ebp - 0xc1c], 0x16
jne 0x40d941
push 0x4a5dd4
push 0x4a5dd4
push 0x4a5dd0
push 0x4a5dd0
mov edx, dword [ebp - 0xc1c]
push edx
mov eax, dword [ebp - 0xc10]
push eax
mov ecx, dword [ebp - 0xc14]
push ecx
push str._03d__03d:_04X:_s__s:_s:_s_n
lea edx, [ebp - 0xa94]
push edx
call fcn.0046f198
add esp, 0x24
jmp 0x40d988
movzx eax, byte [ebp - 0x29d]
push eax
movzx ecx, byte [ebp - 0xc15]
push ecx
mov edx, dword [ebp - 0xc08]
push edx
mov eax, dword [ebp - 0xc0c]
push eax
mov ecx, dword [ebp - 0xc1c]
push ecx
mov edx, dword [ebp - 0xc10]
push edx
mov eax, dword [ebp - 0xc14]
push eax
push str._03d__03d:_04X:_03d__03d:_02X:_02d_n
lea ecx, [ebp - 0xa94]
push ecx
call fcn.0046f198
add esp, 0x24
lea edx, [ebp - 0xa94]
push edx
lea ecx, [ebp - 0x198]
call fcn.00432251
jmp 0x40d517
mov eax, dword [ebp - 0xbf8]
push eax
mov ecx, dword [ebp - 0xbfc]
push ecx
push str._03d__03d_n
lea edx, [ebp - 0xa94]
push edx
call fcn.0046f198
add esp, 0x10
lea eax, [ebp - 0xa94]
push eax
lea ecx, [ebp - 0x198]
call fcn.00432251
push 0x4a4ae2
lea ecx, [ebp - 0xa98]
call fcn.004019c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xce4]
add ecx, 0x3fee33
push ecx
call fcn.0041ad10
add esp, 4
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
push edx
push str._03d_n
lea eax, [ebp - 0xa98]
push eax
call fcn.00402f10
add esp, 0xc
mov ecx, dword [ebp - 0xa98]
push ecx
lea ecx, [ebp - 0x198]
call fcn.00432251
movzx edx, byte [ebp - 0x199]
push edx
push str._03d_n
lea eax, [ebp - 0xa94]
push eax
call fcn.0046f198
add esp, 0xc
lea ecx, [ebp - 0xa94]
push ecx
lea ecx, [ebp - 0x198]
call fcn.00432251
mov dword [ebp - 0x2a8], 0
jmp 0x40da78
mov edx, dword [ebp - 0x2a8]
add edx, 1
mov dword [ebp - 0x2a8], edx
movzx eax, byte [ebp - 0x199]
cmp dword [ebp - 0x2a8], eax
jge 0x40dac0
mov ecx, dword [ebp - 0x2a8]
imul ecx, ecx, 0x32
lea edx, [ebp + ecx - 0x8c4]
push edx
push 0x4a5dd8
lea eax, [ebp - 0xa94]
push eax
call fcn.0046f198
add esp, 0xc
lea ecx, [ebp - 0xa94]
push ecx
lea ecx, [ebp - 0x198]
call fcn.00432251
jmp 0x40da69
lea ecx, [ebp - 0x198]
call fcn.0043240e
mov byte [ebp - 0x2a9], 0
push 0x50
push 0
lea edx, [ebp - 0x6a]
push edx
call fcn.00469c10
add esp, 0xc
lea eax, [ebp - 0xbf4]
push eax
lea ecx, [ebp - 0x6a]
push ecx
call fcn.0046fd70
add esp, 8
movzx edx, word [ebp - 0x78]
push edx
push 0x62
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0xce4]
add ecx, 0x9c
call fcn.0041b0e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa98]
call fcn.00401d60
xor ecx, ecx
jne 0x40cf1b
movzx edx, byte [ebp - 0x2a9]
test edx, edx
je 0x40db45
lea ecx, [ebp - 0x198]
call fcn.0043240e
mov byte [ebp - 0x2a9], 0
cmp dword [ebp - 0x2a4], 1
jne 0x40db54
mov byte [ebp - 0x80], 6
jmp 0x40db58
mov byte [ebp - 0x80], 0x15
push 1
lea eax, [ebp - 0x80]
push eax
push 1
mov ecx, dword [ebp - 0xce4]
call fcn.004059a0
mov dword [ebp - 0xc60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x198]
call fcn.0043248a
mov eax, dword [ebp - 0xc60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046a109
mov esp, ebp
pop ebp
ret 8