Function at 0x401fd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418efc
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x423458]
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 ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x25c]
push 0xb0
push 0
push eax
mov dword [ebp - 0x310], esi
call fcn.00409b90
add esp, 4
lea ecx, [ebp - 0x25c]
call fcn.00402b00
mov edx, str.__MULTIPART_DATA_BOUNDARY_r_nContent_Disposition:_form_data__name_CRVersion__r_n_r_n
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.004049f0
lea edx, [esi + 0x18]
mov ecx, eax
call fcn.00404cd0
mov edx, 0x420678
mov ecx, eax
call fcn.004049f0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00402c30
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x402076
mov eax, dword [esi]
jmp 0x402078
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
push eax
mov dword [ebp - 0x18], eax
call fcn.00406439
add esp, 4
mov dword [ebx], eax
cmp dword [esi + 0x14], 8
jb 0x4020a8
mov esi, dword [esi]
push 0
push 0
push dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
dec eax
cmp dword [ebp - 0x1c], 8
mov dword [ebx + 4], eax
jb 0x4020d1
push dword [ebp - 0x30]
call fcn.00407113
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x310]
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x4020f6
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x24], 0x420a3c
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 1
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00405830
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], vtable.IO::IFileReadAction.0
cmp eax, 0xffffffff
je 0x40214d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xb0
lea eax, [ebp - 0x30c]
push 0
push eax
call fcn.00409b90
add esp, 4
lea ecx, [ebp - 0x30c]
call fcn.00402b00
mov edx, str.__MULTIPART_DATA_BOUNDARY_r_nContent_Disposition:_form_data__name_error__r_n_r_n
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2fc]
call fcn.004049f0
lea edx, [ebp - 0x48]
mov ecx, eax
call fcn.00404cd0
mov edx, 0x420678
mov ecx, eax
call fcn.004049f0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x30c]
call fcn.00402c30
mov esi, eax
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], 8
jb 0x4021b7
mov eax, dword [esi]
jmp 0x4021b9
mov eax, esi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
push eax
mov dword [ebp - 0x18], eax
call fcn.00406439
add esp, 4
mov dword [ebx + 8], eax
cmp dword [esi + 0x14], 8
jb 0x4021e4
mov esi, dword [esi]
push 0
push 0
push dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
dec eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1c], 8
mov dword [ebx + 0xc], eax
jb 0x402211
push dword [ebp - 0x30]
call fcn.00407113
add esp, 4
push 0xb0
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.00409b90
add esp, 4
lea ecx, [ebp - 0x1ac]
call fcn.00402b00
mov esi, dword [ebp - 0x310]
lea ecx, [ebp - 0x19c]
add esi, 0x30
mov byte [ebp - 4], 7
mov edx, str.__MULTIPART_DATA_BOUNDARY_r_nContent_Disposition:_form_data__name_dumpfile___filename_
mov dword [ebp - 0x314], esi
call fcn.004049f0
mov edx, esi
mov ecx, eax
call fcn.00404cd0
mov edx, str.__r_nContent_Type:_application_octet_stream_r_n_r_n
mov ecx, eax
call fcn.004049f0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1ac]
call fcn.00402c30
mov esi, eax
mov byte [ebp - 4], 8
cmp dword [esi + 0x14], 8
jb 0x402289
mov eax, dword [esi]
jmp 0x40228b
mov eax, esi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
push eax
mov dword [ebp - 0x18], eax
call fcn.00406439
add esp, 4
mov dword [ebx + 0x10], eax
cmp dword [esi + 0x14], 8
jb 0x4022b6
mov esi, dword [esi]
push 0
push 0
push dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
dec eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 8
mov dword [ebx + 0x14], eax
jb 0x4022e3
push dword [ebp - 0x30]
call fcn.00407113
add esp, 4
mov esi, dword [ebp - 0x310]
cmp dword [esi + 0x70], 0
jbe 0x4023db
push 0xb0
lea eax, [ebp - 0xfc]
push 0
push eax
call fcn.00409b90
add esp, 4
lea ecx, [ebp - 0xfc]
call fcn.00402b00
mov edx, str._r_n__MULTIPART_DATA_BOUNDARY_r_nContent_Disposition:_form_data__name_snapshotfile___filename_
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xec]
call fcn.004049f0
lea edx, [esi + 0x60]
mov ecx, eax
call fcn.00404cd0
mov edx, str.__r_nContent_Type:_image_jpeg_r_n_r_n
mov ecx, eax
call fcn.004049f0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xfc]
call fcn.00402c30
mov esi, eax
mov byte [ebp - 4], 0xa
cmp dword [esi + 0x14], 8
jb 0x40235d
mov eax, dword [esi]
jmp 0x40235f
mov eax, esi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
push eax
mov dword [ebp - 0x18], eax
call fcn.00406439
add esp, 4
mov dword [ebx + 0x18], eax
cmp dword [esi + 0x14], 8
jb 0x40238a
mov esi, dword [esi]
push 0
push 0
push dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
dec eax
cmp dword [ebp - 0x1c], 8
mov dword [ebx + 0x1c], eax
jb 0x4023b3
push dword [ebp - 0x30]
call fcn.00407113
add esp, 4
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 7
call fcn.00402bb0
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], vtable.std::ios_base.0
push eax
call fcn.004061c0
add esp, 4
push 0x1d
xor eax, eax
mov dword [ebp - 0x1c], 7
push str._r_n__MULTIPART_DATA_BOUNDARY__
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
call fcn.00403fc0
push 0
push 0
push 0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push 0
cmovae eax, dword [ebp - 0x30]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
mov esi, eax
push esi
call fcn.00406439
add esp, 4
mov dword [ebx + 0x20], eax
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x30]
cmovae ecx, dword [ebp - 0x30]
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call edi
dec eax
cmp dword [ebp - 0x1c], 8
mov dword [ebx + 0x24], eax
jb 0x402461
push dword [ebp - 0x30]
call fcn.00407113
add esp, 4
mov eax, dword [ebx + 0xc]
add eax, dword [ebx + 4]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x314]
cmp dword [eax + 0x14], 8
jb 0x402478
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebx + 0x14]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add eax, edi
add dword [ebx + 0x28], eax
cmp esi, 0xffffffff
je 0x4024b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x310]
cmp dword [eax + 0x70], 0
jbe 0x4024ff
add eax, 0x60
cmp dword [eax + 0x14], 8
jb 0x4024c7
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebx + 0x1c]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add eax, edi
add dword [ebx + 0x28], eax
cmp esi, 0xffffffff
je 0x4024ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x24]
lea ecx, [ebp - 0x144]
add dword [ebx + 0x28], eax
mov byte [ebp - 4], 5
call fcn.00402bb0
lea eax, [ebp - 0x144]
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::ios_base.0
push eax
call fcn.004061c0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2a4]
call fcn.00402bb0
lea eax, [ebp - 0x2a4]
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::ios_base.0
push eax
call fcn.004061c0
add esp, 4
cmp dword [ebp - 0x34], 8
jb 0x402566
push dword [ebp - 0x48]
call fcn.00407113
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
lea ecx, [ebp - 0x1f4]
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00402bb0
lea eax, [ebp - 0x1f4]
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::ios_base.0
push eax
call fcn.004061c0
add esp, 4
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.004067bc
mov esp, ebp
pop ebp
ret 4