Function at 0x410010
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d639
mov eax, dword fs:[0]
push eax
sub esp, 0x6b4
mov eax, dword [0x4c9230]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6bc], ecx
xor eax, eax
mov word [ebp - 0x7c], ax
push 0x5a
push 0
lea ecx, [ebp - 0x7a]
push ecx
call fcn.00469c10
add esp, 0xc
mov edx, 0x5d
mov word [ebp - 0x7c], dx
mov eax, 0x32c8
mov word [ebp - 0x7a], ax
mov ecx, 0x32cb
mov word [ebp - 0x78], cx
mov byte [ebp - 0x2cc], 0
push 0xff
push 0
lea edx, [ebp - 0x2cb]
push edx
call fcn.00469c10
add esp, 0xc
mov byte [ebp - 0x1c5], 1
mov byte [ebp - 0x1c0], 0
xor eax, eax
mov byte [ebp - 0x1bf], al
mov byte [ebp - 0x3d5], 0
mov dword [ebp - 0x1c4], 4
mov byte [ebp - 0x17c], 0
push 0xff
push 0
lea ecx, [ebp - 0x17b]
push ecx
call fcn.00469c10
add esp, 0xc
mov byte [ebp - 0x3cc], 0
push 0xff
push 0
lea edx, [ebp - 0x3cb]
push edx
call fcn.00469c10
add esp, 0xc
mov ax, word [0x4a5dd4]
mov word [ebp - 0x1b8], ax
mov cl, byte [0x4a5dd6]
mov byte [ebp - 0x1b6], cl
xor edx, edx
mov dword [ebp - 0x1b5], edx
mov dword [ebp - 0x1b1], edx
mov dword [ebp - 0x1ad], edx
mov dword [ebp - 0x1a9], edx
mov dword [ebp - 0x1a5], edx
mov dword [ebp - 0x1a1], edx
mov dword [ebp - 0x19d], edx
mov word [ebp - 0x199], dx
mov byte [ebp - 0x197], dl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x3d4], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x14], 0
push 0x4a4ae2
lea ecx, [ebp - 0x3d0]
call fcn.004019c0
mov dword [ebp - 4], 0
push 0x4a4ae2
lea ecx, [ebp - 0x10]
call fcn.004019c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x190]
call fcn.00431ff2
mov byte [ebp - 4], 2
push str.MCLOG_:__MC_Command_Start
lea eax, [ebp - 0x2cc]
push eax
call fcn.0046f198
add esp, 8
push 1
push 1
lea ecx, [ebp - 0x2cc]
push ecx
call fcn.00469b80
add esp, 4
push eax
lea edx, [ebp - 0x2cc]
push edx
mov ecx, dword [ebp - 0x6bc]
call fcn.00407130
push str.APPLICATION_SETTING
mov ecx, dword [ebp - 0x6bc]
add ecx, 0x2d40050
call fcn.0041a000
push 1
push str.BgaSecsSwitch
mov ecx, dword [ebp - 0x6bc]
add ecx, 0x2d40050
call fcn.0041a110
test eax, eax
jne 0x41026d
mov byte [ebp - 0x1c0], 0x15
push 1
lea eax, [ebp - 0x1c0]
push eax
push 1
mov ecx, dword [ebp - 0x6bc]
call fcn.004059a0
mov byte [ebp - 0x63d], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x190]
call fcn.0043248a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d0]
call fcn.00401d60
mov al, byte [ebp - 0x63d]
jmp 0x410929
mov byte [ebp - 0x614], 0
push 0x103
push 0
lea ecx, [ebp - 0x613]
push ecx
call fcn.00469c10
add esp, 0xc
mov edx, dword [ebp - 0x6bc]
add edx, 0x3fee33
push edx
push str._sE142_UpData
lea eax, [ebp - 0x614]
push eax
call fcn.0046f198
add esp, 0xc
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x500], 0
lea ecx, [ebp - 0x4fc]
mov dword [ebp - 0x694], ecx
mov edx, dword [ebp - 0x694]
mov dword [edx], 0
mov dword [edx + 4], 0
lea eax, [ebp - 0x4f4]
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x698]
mov dword [ecx], 0
mov dword [ecx + 4], 0
lea edx, [ebp - 0x504]
push edx
lea eax, [ebp - 0x614]
push eax
call fcn.004328be
test eax, eax
jne 0x410323
push 0
lea ecx, [ebp - 0x614]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 0x63c], 0
xor edx, edx
mov dword [ebp - 0x63b], edx
mov dword [ebp - 0x637], edx
mov dword [ebp - 0x633], edx
mov dword [ebp - 0x62f], edx
mov dword [ebp - 0x62b], edx
mov dword [ebp - 0x627], edx
mov dword [ebp - 0x623], edx
mov dword [ebp - 0x61f], edx
mov dword [ebp - 0x1bc], 0x20
push 0x100
push 0
lea eax, [ebp - 0x17c]
push eax
call fcn.00469c10
add esp, 0xc
mov ecx, dword [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1c4]
add edx, dword [ebp - 0x194]
add edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x17c]
push eax
call fcn.0046a590
add esp, 0xc
mov ecx, dword [ebp - 0x194]
add ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x194], ecx
lea edx, [ebp - 0x17c]
push edx
mov ecx, dword [ebp - 0x6bc]
call fcn.0040dbb0
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x63c]
push ecx
call fcn.0046fd70
add esp, 8
lea edx, [ebp - 0x63c]
push edx
lea eax, [ebp - 0x6a]
push eax
call fcn.0046fd70
add esp, 8
mov dword [ebp - 0x1bc], 0x20
push 0x4a4ae2
lea ecx, [ebp - 0x49]
push ecx
call fcn.0046fd70
add esp, 8
mov edx, dword [ebp - 0x194]
add edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x1bc], 3
mov byte [ebp - 0x508], 0
xor eax, eax
mov word [ebp - 0x507], ax
mov byte [ebp - 0x505], al
mov ecx, dword [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1c4]
add edx, dword [ebp - 0x194]
add edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x508]
push eax
call fcn.0046a590
add esp, 0xc
lea ecx, [ebp - 0x508]
push ecx
call fcn.0046f6cb
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x194]
add edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x1bc], 3
mov byte [ebp - 0x50c], 0
xor eax, eax
mov word [ebp - 0x50b], ax
mov byte [ebp - 0x509], al
mov ecx, dword [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1c4]
add edx, dword [ebp - 0x194]
add edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x50c]
push eax
call fcn.0046a590
add esp, 0xc
lea ecx, [ebp - 0x50c]
push ecx
call fcn.0046f6cb
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x194]
add edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x24]
mov dword [ebp - 0x618], eax
lea ecx, [ebp - 0x63c]
push ecx
lea edx, [ebp - 0x614]
push edx
push str._s_s_MC.dat
lea eax, [ebp - 0x17c]
push eax
call fcn.0046f198
add esp, 0x10
lea ecx, [ebp - 0x17c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x1001
lea edx, [ebp - 0x17c]
push edx
lea ecx, [ebp - 0x190]
call fcn.00432054
test eax, eax
jne 0x41058f
push str.MCLOG_:__Err_part10
lea eax, [ebp - 0x2cc]
push eax
call fcn.0046f198
add esp, 8
push 1
push 1
lea ecx, [ebp - 0x2cc]
push ecx
call fcn.00469b80
add esp, 4
push eax
lea edx, [ebp - 0x2cc]
push edx
mov ecx, dword [ebp - 0x6bc]
call fcn.00407130
mov byte [ebp - 0x1c5], 0
jmp 0x41080b
mov dword [ebp - 0x18], 0
jmp 0x4105a1
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x618]
jge 0x4107f8
mov edx, dword [ebp - 0x1c4]
add edx, dword [ebp - 0x194]
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0xd
jne 0x4105cd
jmp 0x4107f8
mov dword [ebp - 0x1bc], 4
lea ecx, [ebp - 0x3d0]
call fcn.00402040
mov dword [ebp - 0x3d4], 0
jmp 0x4105fd
mov edx, dword [ebp - 0x3d4]
add edx, 1
mov dword [ebp - 0x3d4], edx
cmp dword [ebp - 0x3d4], 2
jge 0x410683
push 0x100
push 0
lea eax, [ebp - 0x17c]
push eax
call fcn.00469c10
add esp, 0xc
mov ecx, dword [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1c4]
add edx, dword [ebp - 0x194]
add edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x17c]
push eax
call fcn.0046a590
add esp, 0xc
mov ecx, dword [ebp - 0x194]
add ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x194], ecx
lea edx, [ebp - 0x17c]
push edx
call fcn.0046f6cb
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push 0x4a60a8
lea ecx, [ebp - 0x3d0]
push ecx
call fcn.004130d0
add esp, 0xc
jmp 0x4105ee
mov dword [ebp - 0x1bc], 0x20
push 0x100
push 0
lea edx, [ebp - 0x17c]
push edx
call fcn.00469c10
add esp, 0xc
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x1c4]
add ecx, dword [ebp - 0x194]
add ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x17c]
push edx
call fcn.0046a590
add esp, 0xc
mov eax, dword [ebp - 0x194]
add eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x194], eax
lea ecx, [ebp - 0x17c]
push ecx
mov ecx, dword [ebp - 0x6bc]
call fcn.0040dbb0
lea edx, [ebp - 0x17c]
test edx, edx
jne 0x41070b
push str._No_Wafer_ID_
lea eax, [ebp - 0x17c]
push eax
call fcn.0046fd70
add esp, 8
lea ecx, [ebp - 0x3cc]
push ecx
lea edx, [ebp - 0x17c]
push edx
call fcn.0046fe90
add esp, 8
test eax, eax
je 0x410796
push 0x100
push 0
lea eax, [ebp - 0x3cc]
push eax
call fcn.00469c10
add esp, 0xc
push 0x100
lea ecx, [ebp - 0x17c]
push ecx
lea edx, [ebp - 0x3cc]
push edx
call fcn.0046a590
add esp, 0xc
push 0x22
push 0
lea eax, [ebp - 0x1b8]
push eax
call fcn.00469c10
add esp, 0xc
lea ecx, [ebp - 0x17c]
push ecx
push str.MID:_s_n
lea edx, [ebp - 0x1b8]
push edx
call fcn.0046f198
add esp, 0xc
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x190]
call fcn.00432251
push 0xa
lea ecx, [ebp - 0x3d0]
push ecx
lea edx, [ebp - 0x644]
push edx
call fcn.00412c30
add esp, 0xc
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp - 0x6c0]
mov dword [ebp - 0x6a8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6a8]
mov edx, dword [ecx]
mov dword [ebp - 0x6ac], edx
mov eax, dword [ebp - 0x6ac]
push eax
lea ecx, [ebp - 0x190]
call fcn.00432251
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x644]
call fcn.00401d60
jmp 0x410598
lea ecx, [ebp - 0x190]
call fcn.0043240e
xor ecx, ecx
jne 0x41026d
mov byte [ebp - 0x1c0], 6
push 1
lea edx, [ebp - 0x1c0]
push edx
push 1
mov ecx, dword [ebp - 0x6bc]
call fcn.004059a0
movzx eax, byte [ebp - 0x1c5]
cmp eax, 1
jne 0x41088c
push str.OnPcComCommand_MC_End_OK
lea ecx, [ebp - 0x2cc]
push ecx
call fcn.0046f198
add esp, 8
push 1
push 1
lea edx, [ebp - 0x2cc]
push edx
call fcn.00469b80
add esp, 4
push eax
lea eax, [ebp - 0x2cc]
push eax
mov ecx, dword [ebp - 0x6bc]
call fcn.00407130
movzx ecx, word [ebp - 0x78]
push ecx
push 0x5c
lea edx, [ebp - 0x7c]
push edx
mov ecx, dword [ebp - 0x6bc]
add ecx, 0x9c
call fcn.0041b0e0
jmp 0x4108ea
push 0x4a6058
lea eax, [ebp - 0x2cc]
push eax
call fcn.0046f198
add esp, 8
push 1
push 1
lea ecx, [ebp - 0x2cc]
push ecx
call fcn.00469b80
add esp, 4
push eax
lea edx, [ebp - 0x2cc]
push edx
mov ecx, dword [ebp - 0x6bc]
call fcn.00407130
mov byte [ebp - 0x1c0], 0x4e
mov byte [ebp - 0x1bf], 4
push 2
lea eax, [ebp - 0x1c0]
push eax
push 1
mov ecx, dword [ebp - 0x6bc]
call fcn.004059a0
mov cl, byte [ebp - 0x1c5]
mov byte [ebp - 0x645], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x190]
call fcn.0043248a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d0]
call fcn.00401d60
mov al, byte [ebp - 0x645]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0046a109
mov esp, ebp
pop ebp
ret 8