Function at 0x405770
Capabilities:
Get file size
Print debug messages

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43d08b
push eax
mov eax, 0x12c0
mov dword fs:[0], esp
call fcn.0043cbc0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x12dc]
mov ebx, ecx
push edi
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [eax + 0xc]
test eax, eax
je 0x4057bf
push str.COPHistClient::UploadOrderResource_get_order_id_failed
call fcn.00437ac0
add esp, 4
xor eax, eax
jmp 0x405e53
mov edx, dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
mov ebp, 0x20
push ecx
push esi
mov dword [esp + 0x1c], ebp
call dword [edx + 0x1c]
mov edx, dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c0]
push eax
mov edi, 0x200
push ecx
push esi
mov dword [esp + 0x1c], edi
call dword [edx + 0x20]
mov edx, dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0xad0]
push eax
push ecx
push esi
mov dword [esp + 0x1c], edi
call dword [edx + 0x30]
mov edx, dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x80]
push eax
push ecx
push esi
mov dword [esp + 0x1c], ebp
call dword [edx + 0x34]
mov edx, dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0xed0]
push eax
push ecx
push esi
mov dword [esp + 0x1c], edi
call dword [edx + 0x38]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x40]
push edx
call ebp
add esp, 4
test eax, eax
jbe 0x405857
lea eax, [esp + 0x40]
mov dword [esp + 0x28], eax
jmp 0x40585f
mov dword [esp + 0x28], 0x44ced0
lea ecx, [esp + 0x2c0]
push ecx
call ebp
add esp, 4
test eax, eax
jbe 0x40587d
lea edx, [esp + 0x2c0]
mov dword [esp + 0x30], edx
jmp 0x405885
mov dword [esp + 0x30], 0x44cf50
lea eax, [esp + 0xad0]
push eax
call ebp
add esp, 4
test eax, eax
jbe 0x4058a3
lea ecx, [esp + 0xad0]
mov dword [esp + 0x38], ecx
jmp 0x4058ab
mov dword [esp + 0x38], 0x44d450
lea edx, [esp + 0x80]
push edx
call ebp
add esp, 4
test eax, eax
jbe 0x4058c9
lea eax, [esp + 0x80]
mov dword [esp + 0x3c], eax
jmp 0x4058d1
mov dword [esp + 0x3c], 0x44d650
lea ecx, [esp + 0xed0]
push ecx
call ebp
add esp, 4
test eax, eax
jbe 0x4058ef
lea edx, [esp + 0xed0]
mov dword [esp + 0x34], edx
jmp 0x4058f7
mov dword [esp + 0x34], 0x44d850
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xc2]
mov word [esp + 0xc0], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc0]
stosw word es:[edi], ax
mov eax, dword [esi]
push ecx
push edx
push esi
mov dword [esp + 0x1c], 0x100
call dword [eax + 0x14]
lea eax, [esp + 0xc0]
push eax
call ebp
add esp, 4
test eax, eax
jne 0x40599c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc4]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00407a80
test eax, eax
je 0x405a03
lea edx, [esp + 0xc0]
push edx
call ebp
add esp, 4
test eax, eax
je 0x405a03
mov eax, dword [esi]
lea ecx, [esp + 0xc0]
push ecx
push esi
call dword [eax + 0x70]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc0]
push edx
push eax
mov ecx, ebx
call fcn.00405e70
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.szTransID_
call esi
lea edx, [esp + 0xc0]
push edx
call esi
mov al, byte [esp + 0x2f]
xor ebp, ebp
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x12e0], ebp
call fcn.00404d10
test eax, eax
jne 0x405a1d
push str.COPHistClient::UploadOrderResource_get_order_resource_list_failed
call fcn.00437ac0
mov eax, dword [esp + 0x20]
push eax
call fcn.0043cb60
add esp, 8
xor eax, eax
jmp 0x405e53
push str.no_szTransID
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esi]
push 0xb
push esi
call dword [ecx + 0x5c]
xor eax, eax
jmp 0x405e53
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x405a42
mov ecx, dword [esp + 0x20]
mov eax, 0xd161543f
mov edi, ecx
sub edi, esi
imul edi
add edx, edi
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add edx, eax
jne 0x405a55
push esi
call fcn.0043cb60
add esp, 4
mov eax, 1
jmp 0x405e53
cmp esi, ecx
mov dword [ebx + 0x6fc], ebp
je 0x405ac8
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
add esi, 0x4dc
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esi - 0x430]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405b6b
push 0
push edi
call ebp
mov dword [esi], eax
mov ecx, dword [ebx + 0x6fc]
add ecx, eax
push edi
mov dword [ebx + 0x6fc], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
add esi, 0x4e4
lea edx, [esi - 0x4dc]
cmp edx, ecx
jne 0x405a6b
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov edx, dword [esp + 0x12e4]
mov dword [ebx + 0x700], ebp
cmp esi, ecx
mov dword [ebx + 0x6f8], edx
mov ebp, esi
je 0x405cd9
lea eax, [ebp + 0x2b4]
push str.uploaded
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x405c55
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp edi, eax
mov esi, 0xfffffc18
je 0x405bce
cmp edi, ebp
je 0x405b5b
lea eax, [edi + 0x2b4]
push str.uploaded
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x405b5b
lea eax, [edi + 0xac]
lea ecx, [ebp + 0xac]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x405b5b
mov edx, dword [esp + 0x12e4]
cmp dword [edx], 0
je 0x405b89
mov eax, dword [esp + 0x20]
add edi, 0x4e4
cmp edi, eax
jne 0x405b17
jmp 0x405bce
push str.COPHistClient::UploadOrderResource_file_not_exists
call fcn.00437ac0
mov eax, dword [esp + 0x20]
push eax
call fcn.0043cb60
add esp, 8
xor eax, eax
jmp 0x405e53
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push edi
push ebp
mov ecx, ebx
call fcn.004079a0
mov esi, eax
lea edx, [esp + 0x8c8]
push esi
push str.sameas_upload_mode_iUpload___d
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [esp + 0x8c8]
push eax
call fcn.00437ac0
add esp, 4
test esi, esi
je 0x405c22
cmp esi, 0xffffffff
je 0x405c1a
mov ecx, dword [esp + 0x12e4]
cmp dword [ecx], 0
jne 0x405c1a
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push ebp
mov ecx, ebx
call fcn.004075e0
mov esi, eax
lea edx, [esp + 0x6c0]
push esi
push str.try_complete_new_upload_mode_iUpload___d
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [esp + 0x6c0]
push eax
call fcn.00437ac0
add esp, 4
test esi, esi
jne 0x405cf7
lea esi, [ebp + 0x2b4]
push str.uploaded
push esi
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov ecx, ebx
push ebp
call fcn.00406460
mov ecx, dword [esi + 0x228]
mov eax, dword [ebx + 0x700]
add eax, ecx
mov dword [ebx + 0x700], eax
jmp 0x405cbb
mov eax, dword [ebx + 0x700]
lea edi, [ebx + 0x210]
mov ecx, 0x139
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0x4dc]
mov ecx, dword [ebx + 0x6f4]
test ecx, ecx
lea esi, [edx + eax]
mov dword [ebx + 0x700], esi
je 0x405cbb
mov eax, 0x51eb851f
mul dword [ebx + 0x6fc]
mov edi, edx
mov eax, esi
shr edi, 5
xor edx, edx
div edi
lea edx, [ebx + 0x4e4]
push eax
mov eax, dword [ebx + 0x218]
push edx
mov edx, dword [ebx + 0x214]
push eax
mov eax, dword [ebx + 0x210]
push edx
push eax
call fcn.00408360
mov ecx, dword [esp + 0x20]
add ebp, 0x4e4
cmp ebp, ecx
jne 0x405ae5
mov esi, dword [esp + 0x1c]
cmp esi, ecx
jne 0x405db8
push str.COPHistClient::UploadOrderResource_vecResDesc_is_empty
call fcn.00437ac0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0043cb60
add esp, 8
xor eax, eax
jmp 0x405e53
cmp esi, 0xffffffff
jne 0x405d40
add ebp, 0x2b4
push str.expired
push ebp
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov eax, dword [esp + 0x12e8]
add esp, 8
mov ecx, dword [eax]
push 0xa
push eax
call dword [ecx + 0x5c]
mov edx, dword [esp + 0x14]
push str.Unload_Expired
push edx
mov ecx, ebx
call fcn.00406080
push str.COPHistClient::UploadOrderResource_order_expired
call fcn.00437ac0
add esp, 4
jmp 0x405d99
mov eax, dword [ebp + 0x4e0]
cmp eax, 9
je 0x405d50
cmp eax, 0xfffffffe
jne 0x405d72
mov esi, dword [esp + 0x12e0]
push 7
push esi
mov eax, dword [esi]
call dword [eax + 0x5c]
mov ecx, dword [esp + 0x14]
push str.canceled
push ecx
mov ecx, ebx
call fcn.00406080
jmp 0x405d79
mov esi, dword [esp + 0x12e0]
push str.COPHistClient::UploadOrderResource_iUploaded___0__iUploaded____1
call fcn.00437ac0
mov eax, dword [ebp + 0x4e0]
add esp, 4
cmp eax, 0xb
jne 0x405d99
mov edx, dword [esi]
push 0xb
push esi
call dword [edx + 0x5c]
push str.iUpload___0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043cb60
add esp, 4
xor eax, eax
jmp 0x405e53
mov esi, dword [esp + 0x12e0]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
mov edx, dword [esi]
push ecx
push esi
mov dword [esp + 0x1c], 0x20
call dword [edx + 0x24]
mov edx, dword [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c0]
push eax
push ecx
push esi
mov dword [esp + 0x1c], 0x200
call dword [edx + 0x28]
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x40]
push edx
call edi
add esp, 4
lea esi, [esp + 0x40]
test eax, eax
ja 0x405e0f
mov esi, 0x44d150
lea eax, [esp + 0x2c0]
push eax
call edi
add esp, 4
test eax, eax
lea eax, [esp + 0x2c0]
ja 0x405e2c
mov eax, 0x44d1d0
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0xc4]
push esi
push ecx
push edx
mov ecx, ebx
call fcn.00406ad0
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043cb60
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12d0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12cc
ret 8