Function at 0x509ef0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c0add
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x78efc4]
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 dword [ebp - 0xa8], ecx
push 4
mov dword [ebp - 0xd0], ecx
lea esi, [ecx + 0xa0]
call fcn.00677616
add esp, 4
mov edi, eax
mov dword [ebp - 0xac], edi
push esi
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0xd4], edi
mov esi, dword [ebp - 0xa8]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xfc]
mov edi, dword [esi + 0xf8]
mov dword [ebp - 0xb4], eax
cmp edi, eax
je 0x50a089
lea edx, [esi + 0x108]
lea eax, [esi + 0x104]
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xbc], eax
lea esi, [edi + 0x18]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x509fa0
mov ecx, dword [esi]
cmp dword [esi - 4], 0x10
mov eax, edi
jb 0x509faa
mov eax, dword [edi]
push 0x11
push ecx
push 4
push eax
push 1
push edx
push dword [ebp - 0xbc]
call fcn.0056e210
add esp, 0x1c
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x50a06b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x7a8bf0]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jg 0x50a4c9
mov edx, edi
lea ecx, [ebp - 0xa4]
call fcn.00533d50
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00533d50
mov edx, dword [ebp - 0xc0]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00494ae0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x5c]
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.0044fb00
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 4
push eax
push str.Unable_to_add_data__key__0___value__1___to_upload_request._Curl_form_eorror:__2
push 2
mov ecx, 0x7a8bf8
call fcn.004dd4f0
lea ecx, [ebp - 0x50]
call fcn.0044d720
push fcn.0044bb60
push 3
push 0x18
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0
push eax
call fcn.00677646
mov edx, dword [ebp - 0xb0]
add edi, 0x30
add esi, 0x30
cmp edi, dword [ebp - 0xb4]
jne 0x509f96
mov esi, dword [ebp - 0xa8]
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x50a09e
mov ecx, dword [eax]
test ecx, ecx
je 0x50a09e
cmp ecx, 0xffffffff
jne 0x50a0d5
cmp byte [0x7a971c], 0
jne 0x50a0d5
push str.CAT::HTTP::UploadRequest::GetFileHandle
push 0x1bd
push str.C:devjenkinsworkspacemonitor_win_build_srclibraries_networking_networkinghttp_request.cpp
push 0x742c18
mov edx, str.m_fileToUploadHandle__m_fileToUploadHandle__IsValid__
mov byte [0x7a971c], 1
call fcn.00467640
mov eax, dword [esi + 0xf0]
add esp, 0x10
mov eax, dword [eax]
test eax, eax
je 0x50a41e
cmp eax, 0xffffffff
je 0x50a41e
lea ecx, [ebp - 0xb8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50a41e
lea eax, [esi + 0xd8]
push 1
mov edx, eax
mov dword [ebp - 0xb0], eax
lea ecx, [ebp - 0x44]
call fcn.004e21b0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00533bd0
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x50a165
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50a15b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a546
push edx
push ecx
call fcn.006779b1
add esp, 8
push 0x11
push esi
push 0x13
push dword [ebp - 0xb4]
xor eax, eax
mov dword [ebp - 0x34], 0
push dword [ebp - 0xb8]
cmp dword [ebp - 0x18], 0x10
lea edi, [esi + 0x104]
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0x14
push eax
push 0x10
push str.artifacts_file
push 1
lea eax, [esi + 0x108]
mov dword [ebp - 0x30], 7
push eax
push edi
call fcn.0056e210
add esp, 0x30
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x50a289
call fcn.004486f0
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.0044d190
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x74]
mov edx, dword [ebp - 0xb4]
call fcn.00494ae0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
push ecx
lea eax, [ebp - 0x5c]
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.0044fb00
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xb
push eax
push str.Unable_to_add_file__0__to_upload_request._Curl_form_error:__1
push 2
mov ecx, esi
call fcn.004dd4f0
lea ecx, [ebp - 0x50]
call fcn.0044d720
push fcn.0044bb60
push 2
push 0x18
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 8
push eax
call fcn.00677646
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x50a272
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a268
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a5bd
push edx
push ecx
call fcn.006779b1
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
jmp 0x50a492
push 1
mov byte [ebp - 4], 0xc
push 0x2f
push dword [esi + 0x7c]
call fcn.005722d0
mov ecx, dword [esi + 0x7c]
add esp, 0xc
push 1
test eax, eax
jne 0x50a54b
push 0x2728
push ecx
call fcn.005722d0
mov ecx, dword [esi + 0x7c]
add esp, 0xc
test eax, eax
jne 0x50a56d
push dword [edi]
push 0x2728
push ecx
call fcn.005722d0
add esp, 0xc
test eax, eax
jne 0x50a594
jmp 0x50a3b8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x50a3ec
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x50a3e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a5bd
push edx
push ecx
call fcn.006779b1
add esp, 8
mov esi, dword [ebp - 0xac]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
push esi
call fcn.006779b1
add esp, 8
mov al, 1
jmp 0x50a4ad
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00531420
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x44]
push eax
add ecx, 0xd8
mov byte [ebp - 4], 5
push ecx
push str.Unable_to_read_the_size_of_the_file__0__for_uploading._Error:__1
push 3
mov ecx, esi
call fcn.00454910
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x50a492
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x50a488
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x50a5bd
push edx
push ecx
call fcn.006779b1
add esp, 8
mov esi, dword [ebp - 0xac]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 4
push esi
call fcn.006779b1
add esp, 8
xor al, al
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.006773ff
mov esp, ebp
pop ebp
ret
push 0x7a8bf0
call fcn.00677540
add esp, 4
cmp dword [0x7a8bf0], 0xffffffff
jne 0x509fe9
push 0x102
push 0x7a8c04
mov dword [0x7a8bf8], 0
mov dword [0x7a8bfc], 0
mov dword [0x7a8c00], 0
call fcn.00661c86
mov byte [0x7a8c34], 0
mov al, 1
mov dword [0x7a8c38], 0
mov ecx, 0x7a8c34
xchg byte [ecx], al
push 0x6cb190
call fcn.00677997
push 0x7a8bf0
call fcn.006774f6
add esp, 0x10
jmp 0x509fe9
call fcn.00682da2
push 0x2f
push ecx
call fcn.005722d0
add esp, 0xc
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc4]
push 0x78a604
push eax
call fcn.006798be
push 1
push 0x2728
push ecx
call fcn.005722d0
add esp, 0xc
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xc8]
push 0x78a604
push eax
call fcn.006798be
push dword [edi]
push 0x2728
push dword [esi + 0x7c]
call fcn.005722d0
add esp, 0xc
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xcc]
push 0x78a604
push eax
call fcn.006798be
call fcn.00682da2
int3