Function at 0x1002ca50
Capabilities:
Get file size
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036ba6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0xa6b0
call fcn.10033810
mov eax, dword [0x10042074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xa6a8]
mov esi, dword [ebp + 8]
push 0
push 0
push 0
mov dword [ebp - 0xa668], eax
mov eax, dword [ebp + 0x18]
push 0
mov dword [ebp - 0xa684], eax
mov eax, dword [ebp + 0x1c]
push 1
mov dword [ebp - 0xa68c], eax
mov dword [ebp - 0xa690], eax
mov eax, dword [ebp + 0x24]
push 0
mov dword [ebp - 0xa694], eax
call sub.mfc140.dll_Ordinal_545
lea eax, [ebp - 0xa674]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x934]
mov ecx, edi
push eax
push 0
push 0
lea eax, [ebp - 0x3134]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.1002d8b0
lea ecx, [ebp - 0xa6a8]
test eax, eax
je 0x1002d05e
push 0
push 0
push dword [ebp - 0xa674]
lea eax, [ebp - 0x134]
push eax
call sub.mfc140.dll_Ordinal_5678
push 0x20000000
push 0
push 0
push 1
push 0
lea ecx, [ebp - 0x3134]
mov dword [ebp - 0xa688], eax
push ecx
push 0
mov ecx, eax
call sub.mfc140.dll_Ordinal_11936
push 0xffffffffffffffff
push 0x10000000
push str.Accept:_text__r_nContent_Type:_multipart_form_data__boundary___________________________7d13a23b368_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__Trident_7.0__rv:11.0__like_Gecko_r_n
mov ecx, eax
mov dword [ebp - 0xa680], eax
call sub.mfc140.dll_Ordinal_1980
push 0x100389e0
lea ecx, [ebp - 0xa66c]
call dword [sym.imp.mfc140.dll_Ordinal_310]
cmp dword [ebp + 0xc], 0
mov byte [ebp - 4], 1
jle 0x1002cc18
mov esi, dword [ebp - 0xa668]
push esi
lea eax, [ebp - 0xa664]
push str._r_n_____________________________7d13a23b368_r_nContent_Disposition:_form_data__name__s__r_nContent_Type:_text_plain_r_n
push eax
call fcn.1001a8c0
lea ecx, [ebp - 0xa664]
add esp, 0xc
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1002cba0
mov ax, word [0x1003a70c]
lea edx, [esi + 0x100]
mov word [ecx], ax
mov esi, edx
mov al, byte [0x1003a70e]
mov byte [ecx + 2], al
mov al, byte [edx]
inc edx
test al, al
jne 0x1002cbc3
lea edi, [ebp - 0xa664]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002cbd3
mov ecx, edx
lea eax, [ebp - 0xa664]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0xa66c]
call dword [sym.imp.mfc140.dll_Ordinal_1696]
mov esi, dword [ebp - 0xa668]
add esi, 0x500
sub dword [ebp + 0xc], 1
mov dword [ebp - 0xa668], esi
jne 0x1002cb84
push 0x1003a70c
lea ecx, [ebp - 0xa66c]
call dword [sym.imp.mfc140.dll_Ordinal_1696]
xor esi, esi
mov dword [ebp - 0xa670], 0
xor edi, edi
mov dword [ebp - 0xa668], esi
mov dword [ebp - 0xa67c], edi
cmp dword [ebp + 0x14], esi
jle 0x1002cd1c
mov edi, dword [ebp - 0xa684]
add edi, 0x104
push 0
push 0
push 3
push 0
push 1
push closesocket
lea eax, [edi + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa674], eax
cmp eax, 0xffffffff
jne 0x1002cc8b
mov dword [edi - 0x104], 0
jmp 0x1002cd00
push edi
lea eax, [edi - 0x100]
push eax
lea eax, [ebp - 0x534]
push str._____________________________7d13a23b368_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_application_octet_stream_r_n_r_n
push eax
call fcn.1001a8c0
lea ecx, [ebp - 0x534]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ccb0
mov esi, dword [ebp - 0xa670]
sub ecx, edx
push 0
push dword [ebp - 0xa674]
add esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0xa674]
add dword [ebp - 0xa67c], eax
mov dword [edi - 0x104], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa668], 0
lea eax, [esi + 4]
cmovle eax, esi
mov esi, dword [ebp - 0xa668]
mov dword [ebp - 0xa670], eax
inc esi
add edi, 0x904
mov dword [ebp - 0xa668], esi
cmp esi, dword [ebp + 0x14]
jl 0x1002cc58
mov edi, dword [ebp - 0xa67c]
lea ecx, [ebp - 0xa66c]
call dword [sym.imp.mfc140.dll_Ordinal_5861]
push str._r_n_r_n_____________________________7d13a23b368___r_n
lea ecx, [ebp - 0xa678]
mov esi, eax
call dword [sym.imp.mfc140.dll_Ordinal_310]
lea ecx, [ebp - 0xa678]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140.dll_Ordinal_5861]
lea ecx, [ebp - 0xa6bc]
mov dword [ebp - 0xa674], eax
call sub.mfc140.dll_Ordinal_500
mov ecx, dword [ebp - 0xa674]
add ecx, esi
mov byte [ebp - 4], 3
add ecx, edi
add ecx, dword [ebp - 0xa670]
push ecx
mov dword [ebp - 0xa67c], ecx
call sub.mfc140.dll_Ordinal_265
add esp, 4
lea ecx, [ebp - 0xa66c]
mov edi, eax
mov dword [ebp - 0xa668], edi
push esi
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0xa670], 0
add edi, esi
cmp dword [ebp + 0x14], 0
jle 0x1002ce93
mov esi, dword [ebp - 0xa684]
add esi, 0x104
lea ecx, [ebp - 0x28]
call sub.mfc140.dll_Ordinal_500
push 0
push 0
lea eax, [esi + 0x400]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call sub.mfc140.dll_Ordinal_11907
test eax, eax
je 0x1002ce6b
cmp dword [ebp - 0xa670], 0
jle 0x1002cdf9
mov dword [edi], 0xa0d0a0d
add edi, 4
push esi
lea eax, [esi - 0x100]
push eax
lea eax, [ebp - 0x2934]
push str._____________________________7d13a23b368_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_application_octet_stream_r_n_r_n
push eax
call fcn.1001a8c0
lea ecx, [ebp - 0x2934]
add esp, 0x10
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ce20
sub ecx, edx
lea eax, [ebp - 0x2934]
push ecx
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
lea ecx, [ebp - 0x2934]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ce43
push dword [esi - 0x104]
sub ecx, edx
add edi, ecx
lea ecx, [ebp - 0x28]
push edi
call sub.mfc140.dll_Ordinal_12294
add edi, dword [esi - 0x104]
lea ecx, [ebp - 0x28]
call sub.mfc140.dll_Ordinal_2880
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call sub.mfc140.dll_Ordinal_1140
mov eax, dword [ebp - 0xa670]
add esi, 0x904
inc eax
mov dword [ebp - 0xa670], eax
cmp eax, dword [ebp + 0x14]
jl 0x1002cdc0
push dword [ebp - 0xa674]
lea ecx, [ebp - 0xa678]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp + 0x20]
mov edi, dword [ebp - 0xa68c]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0xa680]
add esp, 0x18
mov ecx, esi
mov byte [ebp - 4], 5
push dword [ebp - 0xa67c]
push dword [ebp - 0xa668]
push 0
push 0
call sub.mfc140.dll_Ordinal_13051
lea eax, [ebp - 0xa684]
mov ecx, esi
push eax
call sub.mfc140.dll_Ordinal_12260
mov ecx, dword [ebp - 0xa694]
mov eax, dword [ebp - 0xa684]
mov dword [ecx], eax
nop dword [eax]
mov eax, dword [esi]
lea ecx, [ebp - 0x534]
push 0x400
push ecx
mov ecx, esi
mov eax, dword [eax + 0x68]
call eax
test eax, eax
je 0x1002cf54
lea eax, [ebp - 0x534]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002cf21
sub eax, esi
dec edi
nop dword [eax + eax]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002cf30
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xa680]
mov edi, dword [ebp - 0xa68c]
jmp 0x1002cf00
push 0
push dword [ebp - 0xa668]
call fcn.10033867
mov eax, dword [esi]
add esp, 8
mov ecx, esi
mov dword [ebp - 4], 3
call dword [eax + 0x58]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
mov ecx, dword [ebp - 0xa688]
test ecx, ecx
je 0x1002cf8c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
lea ecx, [ebp - 0xa6bc]
call sub.mfc140.dll_Ordinal_1140
lea ecx, [ebp - 0xa678]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0xa66c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0xa6a8]
call sub.mfc140.dll_Ordinal_1173
mov eax, 1
jmp 0x1002d065
call sub.mfc140.dll_Ordinal_1173
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100337f6
mov esp, ebp
pop ebp
ret 0x20