Function at 0x470800
Capabilities:
Copy file
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b91a
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x55f43c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x660], 1
jne 0x470c85
mov dword [ebp - 0x14], 0
push 0x52861c
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0042c5c0
add esp, 0xc
mov byte [ebp - 4], 4
push str._Fail
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042c5c0
add esp, 0xc
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp + 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_7322]
movzx edx, al
test edx, edx
jne 0x4708ac
push 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp + 0x10]
push eax
push 0x52862c
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004206a0
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea eax, [ebp + 0x10]
push eax
push 0x528630
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.0042c5c0
add esp, 0xc
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004206a0
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x48]
call dword [sym.imp.mfc100.dll_Ordinal_901]
push 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp + 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_7322]
movzx eax, al
test eax, eax
jne 0x47097a
push 0
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x58]
add ecx, 0x658
push ecx
push 0x524802
call fcn.004585a0
add esp, 8
movzx edx, al
test edx, edx
je 0x470b2a
lea ecx, [ebp - 0x38]
call sub.mfc100.dll_Ordinal_421
mov byte [ebp - 4], 0xc
push 0
push 0x2001
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x38]
call sub.mfc100.dll_Ordinal_10906
cmp eax, 1
jne 0x470a18
lea ecx, [ebp - 0x38]
call fcn.00457e30
mov ecx, dword [ebp - 0x58]
add ecx, 0x658
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x658
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x38]
call sub.mfc100.dll_Ordinal_13312
lea ecx, [ebp - 0x38]
call sub.mfc100.dll_Ordinal_4267
lea ecx, [ebp - 0x38]
call sub.mfc100.dll_Ordinal_2524
jmp 0x470a61
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push str.Fail_to_open_log:_s_err_d.
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x10
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x3c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
lea ecx, [ebp + 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_7322]
movzx edx, al
test edx, edx
jne 0x470b1e
push 0
push 0x2001
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x38]
call sub.mfc100.dll_Ordinal_10906
cmp eax, 1
jne 0x470ad5
lea ecx, [ebp - 0x38]
call fcn.00457e30
mov ecx, dword [ebp - 0x58]
add ecx, 0x658
call dword [sym.imp.mfc100.dll_Ordinal_5207]
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x658
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
lea ecx, [ebp - 0x38]
call sub.mfc100.dll_Ordinal_13312
lea ecx, [ebp - 0x38]
call sub.mfc100.dll_Ordinal_4267
lea ecx, [ebp - 0x38]
call sub.mfc100.dll_Ordinal_2524
jmp 0x470b1e
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc100.dll_Ordinal_316]
mov byte [ebp - 4], 0xe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x24]
push eax
push str.Fail_to_open_SQL_log:_s_err_d.
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_4283]
add esp, 0x10
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call sub.Micl.dll_MiclSendDlgMessage
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x40]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x38]
call sub.mfc100.dll_Ordinal_977
push str.ExportedLog.zip
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.0042c5c0
add esp, 0xc
mov byte [ebp - 4], 0xf
mov ecx, dword [0x55fc1c]
cmp dword [ecx], 4
jl 0x470b96
xor edx, edx
je 0x470b7d
push 0xcd1
push str.CMMPTDlg::SaveFailedLog
push 0x52869c
mov eax, dword [ebp - 0x18]
push eax
push str.export_log_path_:__s_t_s___s__line:_d____n
push 4
mov ecx, dword [0x55fc1c]
push ecx
call fcn.00496cb0
add esp, 0x1c
jmp 0x470b96
mov edx, dword [ebp - 0x18]
push edx
push str.export_log_path_:__s_n
push 4
mov eax, dword [0x55fc1c]
push eax
call fcn.00496cb0
add esp, 0x10
xor ecx, ecx
jne 0x470b43
push 0
push 0
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_4498]
push eax
call sub.Micl.dll_MiclStopIclAndExportZipLog
add esp, 8
lea ecx, [ebp + 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_7322]
movzx edx, al
test edx, edx
jne 0x470bc7
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
lea edx, [ebp + 0x14]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0x11
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
lea edx, [ebp + 0xc]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_300]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x58]
call fcn.00470410
lea ecx, [ebp + 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
mov ecx, dword [ebp - 0x58]
call fcn.00473220
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10