Function at 0x4075e0
Capabilities:
Print debug messages
Read file on windows

Disassembly:
mov eax, 0x7bb38
call fcn.0043cbc0
push ebx
push ebp
mov ebp, dword [esp + 0x7bb44]
push esi
push edi
push str.uploading
mov eax, dword [ebp]
mov ebx, ecx
push eax
call fcn.00406080
mov eax, 0xfffffc18
test ebp, ebp
mov dword [esp + 0x10], eax
je 0x40798d
lea edi, [ebx + 0x210]
mov ecx, 0x139
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp]
push ecx
push str.COPHistClient::DoUpload_order_id___d
call fcn.00437ac0
mov edx, dword [ebp + 0x4dc]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
add esp, 8
lea esi, [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
push edx
mov edx, dword [ebp]
push esi
push eax
mov eax, dword [esp + 0x7bb64]
push ecx
push edx
push eax
lea ecx, [esp + 0x240]
push str._s_orderid_dimageid_dbundleid_drandomnum_stotalbytes_d
push ecx
call edi
mov edx, dword [ebp + 0x4dc]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
add esp, 0x20
push edx
mov edx, dword [ebp]
push esi
push eax
mov eax, dword [esp + 0x7bb60]
push ecx
push edx
push eax
lea ecx, [esp + 0xa40]
push str._s_orderid_dimageid_dbundleid_drandomnum_stotalbytes_d
push ecx
call edi
mov edx, dword [ebp + 0x4dc]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
add esp, 0x20
push edx
mov edx, dword [ebp]
push esi
push eax
mov eax, dword [esp + 0x7bb60]
push ecx
push edx
push eax
lea ecx, [esp + 0x1240]
push str._s_orderid_dimageid_dbundleid_drandomnum_stotalbytes_dUploadType1
push ecx
call edi
mov ecx, 0x1e847
xor eax, eax
lea edi, [esp + 0x1a49]
mov byte [esp + 0x1a48], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xac]
push 0x4440c0
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
xor ecx, ecx
add esp, 0x28
cmp eax, ecx
mov dword [esp + 0x1c], eax
je 0x407989
mov esi, dword [esp + 0x7bb50]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 0x4dc]
mov ecx, dword [ebp + 0x4d8]
cmp ecx, eax
jb 0x4077a8
lea edx, [ebp + 0x3d4]
mov ecx, ebx
push edx
push eax
lea eax, [ebp + 0xac]
push eax
call fcn.00407d80
test eax, eax
jne 0x407966
mov ecx, 0x81
lea edi, [esp + 0x22]
mov word [esp + 0x20], ax
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x4d8]
stosw word es:[edi], ax
mov eax, dword [ebp + 0x4dc]
push eax
push ecx
push str.p__dwUploadedSize___d___p__dwFileSize___d_n
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [ebp + 0x4d8], eax
call dword [sym.imp.MSVCRT.dll_fsetpos]
add esp, 8
jmp 0x4077d2
push 2
push 0
push 0
lea eax, [esp + 0x234]
push 0
push eax
push esi
push ebp
push 0x407180
push ebx
push 0
push 0
push 0
push 0
mov ecx, 0x44dc68
call fcn.0040b100
mov edi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x4d8]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ecx
push edx
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCRT.dll_fsetpos]
push edi
push 0x7a120
lea eax, [esp + 0x1a38]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
mov eax, dword [ebp + 0x4d8]
add esp, 0x18
test eax, eax
jne 0x4078b6
push 2
push 0
push 0
lea ecx, [esp + 0xa34]
push 0
push ecx
lea edx, [esp + 0x24]
push esi
push edx
push 0x407410
push ebx
push 0x406f20
push 0
lea eax, [esp + 0x1a54]
push edi
push eax
mov ecx, 0x44dc68
call fcn.0040b100
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40797b
test eax, eax
jne 0x40789d
push 2
push eax
push eax
lea ecx, [esp + 0x234]
push eax
push ecx
push esi
push ebp
push 0x407180
push ebx
push eax
push eax
push eax
push eax
mov ecx, 0x44dc68
call fcn.0040b100
mov edx, dword [ebp + 0x4d8]
mov dword [ebx + 0x6e8], edx
mov eax, dword [ebp + 0x4d8]
test eax, eax
jne 0x4078b6
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x4d8]
test eax, eax
je 0x40781d
cmp dword [esp + 0x10], 0xffffffff
je 0x40797b
mov eax, dword [ebp + 0x4d8]
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x14]
mov dword [ebx + 0x6e8], eax
mov ecx, dword [ebp + 0x4d8]
push edx
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCRT.dll_fsetpos]
add esp, 8
test eax, eax
jne 0x407970
push edi
push 0x7a120
lea eax, [esp + 0x1a30]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea ecx, [esp + 0x1228]
lea edx, [esp + 0x10]
push 2
push 0
push 0
push 0
push ecx
push esi
push edx
push 0x407410
push ebx
push 0x406f20
push 0
push eax
lea eax, [esp + 0x1a58]
mov ecx, 0x44dc68
push eax
call fcn.0040b100
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40797b
test eax, eax
je 0x407713
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407713
mov dword [esp + 0x10], 0
jmp 0x40797b
push str.fsetpos_fail_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7bb38
ret 0x10