Function at 0x591e10
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7349fd
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x899944]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
add eax, 0x88
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x58]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 0
jne 0x591e6e
mov dword [ebp - 0xa8], 0
jmp 0x591e80
mov eax, dword [ebp - 0x58]
push eax
call fcn.00710f40
add esp, 4
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0xcc]
call fcn.005772d0
mov eax, dword [ebp - 0x48]
add eax, 0x90
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0
jne 0x591ebc
mov dword [ebp - 0xac], 0
jmp 0x591ece
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00710f40
add esp, 4
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0xf0]
call fcn.005772d0
mov edx, dword [ebp - 0x48]
add edx, 0x54
mov dword [ebp - 0xf4], edx
mov eax, 0x75d15e
test eax, eax
jne 0x591f05
mov dword [ebp - 0xb0], 0
jmp 0x591f18
push 0x75d15e
call fcn.00710f40
add esp, 4
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
push ecx
push 0x75d15e
mov ecx, dword [ebp - 0xf4]
call fcn.005772d0
mov edx, dword [ebp - 0x48]
add edx, 0x54
mov dword [ebp - 0x4c], edx
lea ecx, [ebp + 8]
call fcn.005785c0
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.004030a0
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jge 0x592069
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.004014b0
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x591f82
mov dword [ebp - 0x78], 0
jmp 0x591f91
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.005804a0
mov ecx, 0x75ff08
test ecx, ecx
jne 0x591fb3
mov dword [ebp - 0x7c], 0
jmp 0x591fc3
push 0x75ff08
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
push edx
push 0x75ff08
mov ecx, dword [ebp - 0x4c]
call fcn.005804a0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
push str.GetFileSize_Failed:__s
push str.CFTPImpl::GetFile
push 0x5c8
push str.D:Bit_BucketBTS_RetailSP24PLUS_REQ_frontendodin_groupFTUpdateServiceFTPHandler.h
push 4
push 0
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x20
mov edx, dword [ebp + 8]
push edx
push str.Unabale_to_read_size_of_file__s
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00575ea0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.Reading_file_size_failed:__s
push str.CFTPImpl::GetFile
push 0x5ca
push str.D:Bit_BucketBTS_RetailSP24PLUS_REQ_frontendodin_groupFTUpdateServiceFTPHandler.h
push 0
push 0
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x20
mov byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0xb8], edx
mov ecx, dword [ebp - 0xb8]
call fcn.00577240
mov al, byte [ebp - 0x4d]
jmp 0x5925be
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x80]
mov dword [eax + 0x9c], ecx
xor edx, edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
lea ecx, [ebp + 8]
call fcn.005785c0
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.00402cd0
mov byte [ebp - 0x41], al
movzx edx, byte [ebp - 0x41]
cmp edx, 1
je 0x592162
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.004014b0
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x5920d7
mov dword [ebp - 0x84], 0
jmp 0x5920e9
mov eax, dword [ebp - 0x64]
push eax
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x4c]
call fcn.005804a0
mov eax, 0x75ff08
test eax, eax
jne 0x592111
mov dword [ebp - 0x88], 0
jmp 0x592124
push 0x75ff08
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
push ecx
push 0x75ff08
mov ecx, dword [ebp - 0x4c]
call fcn.005804a0
mov byte [ebp - 0x4e], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
sub edx, 0x10
mov dword [ebp - 0xc0], edx
mov ecx, dword [ebp - 0xc0]
call fcn.00577240
mov al, byte [ebp - 0x4e]
jmp 0x5925be
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 8]
call fcn.005785c0
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xc4]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.00402e20
mov byte [ebp - 0x41], al
movzx eax, byte [ebp - 0x41]
cmp eax, 1
je 0x59224f
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.004014b0
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x5921c4
mov dword [ebp - 0x8c], 0
jmp 0x5921d6
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.005804a0
mov ecx, 0x75ff08
test ecx, ecx
jne 0x5921fe
mov dword [ebp - 0x90], 0
jmp 0x592211
push 0x75ff08
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
push edx
push 0x75ff08
mov ecx, dword [ebp - 0x4c]
call fcn.005804a0
mov byte [ebp - 0x4f], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
sub eax, 0x10
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
call fcn.00577240
mov al, byte [ebp - 0x4f]
jmp 0x5925be
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp + 8]
call fcn.005785c0
mov dword [ebp - 0xe8], eax
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.00402a40
mov byte [ebp - 0x41], al
movzx ecx, byte [ebp - 0x41]
cmp ecx, 1
je 0x59233c
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.004014b0
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x5922b1
mov dword [ebp - 0x94], 0
jmp 0x5922c3
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.005804a0
mov edx, 0x75ff08
test edx, edx
jne 0x5922eb
mov dword [ebp - 0x98], 0
jmp 0x5922fe
push 0x75ff08
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
push 0x75ff08
mov ecx, dword [ebp - 0x4c]
call fcn.005804a0
mov byte [ebp - 0x50], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
sub ecx, 0x10
mov dword [ebp - 0xd0], ecx
mov ecx, dword [ebp - 0xd0]
call fcn.00577240
mov al, byte [ebp - 0x50]
jmp 0x5925be
lea ecx, [ebp + 8]
call fcn.005785c0
mov dword [ebp - 0xd4], eax
lea ecx, [ebp + 8]
call fcn.005785c0
mov dword [ebp - 0xd8], eax
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.00402b90
mov byte [ebp - 0x41], al
movzx ecx, byte [ebp - 0x41]
cmp ecx, 1
je 0x592482
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.004014b0
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x5923a1
mov dword [ebp - 0x9c], 0
jmp 0x5923b3
mov edx, dword [ebp - 0x70]
push edx
call fcn.00710f40
add esp, 4
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.005804a0
mov edx, 0x75ff08
test edx, edx
jne 0x5923db
mov dword [ebp - 0xa0], 0
jmp 0x5923ee
push 0x75ff08
call fcn.00710f40
add esp, 4
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
push eax
push 0x75ff08
mov ecx, dword [ebp - 0x4c]
call fcn.005804a0
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
push edx
push str.GetFile_Failed__s
push str.CFTPImpl::GetFile
push 0x5f9
push str.D:Bit_BucketBTS_RetailSP24PLUS_REQ_frontendodin_groupFTUpdateServiceFTPHandler.h
push 4
push 0
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x20
mov eax, dword [ebp + 8]
push eax
push str.Downloading_file__s_failed
push str.CFTPImpl::GetFile
push 0x5fa
push str.D:Bit_BucketBTS_RetailSP24PLUS_REQ_frontendodin_groupFTUpdateServiceFTPHandler.h
push 0
push 0
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x20
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
sub ecx, 0x10
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xdc]
call fcn.00577240
mov al, byte [ebp - 0x51]
jmp 0x5925be
lea ecx, [ebp + 8]
call fcn.005785c0
mov dword [ebp - 0xe0], eax
push 0
push 0
push 3
push 0
push 1
push 1
mov edx, dword [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x592548
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
push ecx
push str.Unable_to_set_file_times:__dErr
push str.CFTPImpl::GetFile
push 0x60f
push str.D:Bit_BucketBTS_RetailSP24PLUS_REQ_frontendodin_groupFTUpdateServiceFTPHandler.h
push 3
mov edx, dword [ebp - 0x48]
push edx
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x20
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jne 0x592599
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
push ecx
push str.Unable_to_close_file_handle:__dErr
push str.CFTPImpl::GetFile
push 0x616
push str.D:Bit_BucketBTS_RetailSP24PLUS_REQ_frontendodin_groupFTUpdateServiceFTPHandler.h
push 3
mov edx, dword [ebp - 0x48]
push edx
call fcn.00595750
push eax
call fcn.00597650
add esp, 0x20
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
sub eax, 0x10
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
call fcn.00577240
mov al, byte [ebp - 0x52]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret 4