Function at 0x10004a90
Capabilities:
Check if file exists
Move file

Disassembly:
push 0xffffffffffffffff
push 0x1000fe7b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1001601c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push edi
mov eax, dword [0x1001601c]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea edi, [esi + 0x68]
xor ebx, ebx
cmp edi, ebx
je 0x10004ad8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea edi, [esi + 0x2c]
push edi
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, edi
mov dword [esp + 0x54], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov eax, dword [esi + 0x5c]
cmp eax, ebx
jbe 0x10004c24
mov ebp, 0x10
cmp dword [esi + 0x60], ebp
jb 0x10004b0c
mov eax, dword [esi + 0x4c]
jmp 0x10004b0f
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10004c24
cmp byte [esi + 0xbc], bl
je 0x10004b77
cmp dword [esi + 0x28], ebp
jb 0x10004b30
mov ecx, dword [esi + 0x14]
jmp 0x10004b33
lea ecx, [esi + 0x14]
cmp dword [0x100165e4], ebp
mov edx, dword [0x100165d0]
jae 0x10004b46
mov edx, 0x100165d0
cmp dword [esi + 0x60], ebp
jb 0x10004b50
mov eax, dword [esi + 0x4c]
jmp 0x10004b53
lea eax, [esi + 0x4c]
mov ebx, dword [esi + 0x64]
push str..rdy
push ebx
push ecx
push edx
push eax
push 0x10011a30
lea ecx, [esp + 0x28]
call fcn.10008260
add esp, 0x18
mov byte [esp + 0x54], 1
jmp 0x10004bc6
cmp dword [esi + 0x28], ebp
jb 0x10004b81
mov ecx, dword [esi + 0x14]
jmp 0x10004b84
lea ecx, [esi + 0x14]
cmp dword [0x100165e4], ebp
mov edx, dword [0x100165d0]
jae 0x10004b97
mov edx, 0x100165d0
cmp dword [esi + 0x60], ebp
jb 0x10004ba1
mov eax, dword [esi + 0x4c]
jmp 0x10004ba4
lea eax, [esi + 0x4c]
mov ebx, dword [esi + 0x64]
push str..xml
push ebx
push ecx
push edx
push eax
push str._sulog__s__s__d_s
lea ecx, [esp + 0x28]
call fcn.10008260
add esp, 0x18
mov byte [esp + 0x54], 2
push eax
mov ecx, edi
call dword [0x10011150]
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [edi + 0x18], ebp
jb 0x10004be9
mov eax, dword [edi + 4]
jmp 0x10004bec
lea eax, [edi + 4]
cmp dword [esp + 0x44], ebp
mov ecx, dword [esp + 0x30]
jae 0x10004bfa
lea ecx, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll_rename]
add esp, 8
call fcn.10009cf0
test al, al
je 0x10004c24
cmp dword [edi + 0x18], ebp
jb 0x10004c18
mov edi, dword [edi + 4]
jmp 0x10004c1b
add edi, 4
push edi
call sub.LogTransport2.dll_UploadLog
add esp, 4
add dword [esi + 0x64], 1
lea ecx, [esp + 0x2c]
mov dword [esi + 0xc8], ebx
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1000e1de
add esp, 0x48
ret