Function at 0x43a510
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4596a1
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x472008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x60], 8
lea edi, [esi + 0x4c]
jb 0x43a54d
mov eax, dword [edi]
jmp 0x43a54f
mov eax, edi
push 0
push 0x80
push 3
push 0
push 0
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43a59d
push str.checkUploadFile_CreateFile_error
call fcn.004046d0
add esp, 4
mov dword [esi + 0xe4], 1
lea ecx, [esi + 0xe8]
push 6
push 0x45f0f4
call fcn.00403e00
jmp 0x43ab32
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 8
lea ecx, [ebp - 0x20]
mov eax, esp
push ecx
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004097d0
mov cl, byte [esi + 0x10]
add esp, 0xc
mov al, byte [ebp - 0x20]
mov byte [esi + 0x10], al
mov eax, dword [ebp - 0x18]
mov edx, dword [esi + 0x1c]
mov byte [ebp - 0x108], cl
mov byte [ebp - 0x20], cl
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
push dword [ebp - 0x108]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.0040a110
push dword [esi]
mov dword [ebp - 4], 0xffffffff
push str.checkUploadFile_file_size_:
call fcn.004046d0
mov eax, dword [esi]
add esp, 8
cmp eax, dword [esi + 0x48]
ja 0x43a809
lea eax, [ebp - 0x108]
mov dword [esi + 4], 1
push eax
lea eax, [ebp - 0x104]
mov dword [esi + 8], 0
push eax
push edi
call fcn.0040b900
add esp, 0xc
cmp dword [esi + 0xdc], 1
jne 0x43a66f
push dword [ebp - 0x108]
push dword [ebp - 0x104]
call fcn.0043c650
add esp, 8
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x108]
lea ecx, [ebp - 0x190]
push dword [ebp - 0x104]
call fcn.00423dc0
mov ecx, eax
call fcn.00423fc0
mov edi, dword [ebp - 0x104]
push edi
mov dword [ebp - 4], 1
call fcn.00423d4d
mov eax, dword [ebp - 0x104]
add esp, 4
mov ecx, 0x8123
mov byte [ebp - 0x11c], 0
test edi, edi
xorps xmm0, xmm0
movq qword [ebp - 0x114], xmm0
push dword [ebp - 0x11c]
cmovne eax, ecx
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x104], eax
call fcn.0040a110
lea eax, [ebp - 0x28]
mov byte [ebp - 0x11c], 3
push eax
call fcn.00405d00
mov dword [ebp - 0x114], eax
add esp, 4
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x110], eax
mov al, byte [esi + 0x10]
mov byte [ebp - 4], 2
test al, al
je 0x43a71a
cmp al, 2
je 0x43a73d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
push 2
lea ecx, [ebp - 0x124]
mov byte [esi + 0x10], 2
call fcn.00406d10
mov eax, dword [ebp - 0x124]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x120]
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x11c]
push eax
call fcn.0040b610
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 3
call fcn.0040a110
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x10c], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x43a788
mov eax, dword [ecx]
jmp 0x43a78a
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00403be0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str.checkUploadFile_md5str_:
call fcn.00406980
mov byte [ebp - 4], 1
call fcn.004046e0
add esp, 0x30
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
lea ecx, [esi + 0x20]
push eax
call fcn.00431230
mov eax, dword [esi]
lea ecx, [esi + 0x20]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00431230
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x43ab32
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004035c0
add esp, 0xc
jmp 0x43ab32
push 0xc0
lea eax, [ebp - 0x100]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x100]
push 1
push 0x40
push 0x21
push edi
call fcn.0043a320
cmp dword [ebp - 0x9c], 0
mov dword [ebp - 4], 5
jne 0x43a8b2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x120], esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x43a864
mov eax, dword [ecx]
jmp 0x43a866
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.00401e20
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push str.Failed_to_open_file:
call fcn.004025f0
mov byte [ebp - 4], 5
call fcn.00404730
add esp, 0x30
mov dword [esi + 0xe4], 1
lea ecx, [esi + 0xe8]
push 0x45f168
call fcn.00413c30
jmp 0x43ab1b
mov eax, dword [esi]
xor edx, edx
div dword [esi + 0x48]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
test edx, edx
jle 0x43a8c7
inc eax
mov dword [esi + 4], eax
push dword [esi + 4]
push str.sliceCount:
call fcn.004046d0
push dword [esi + 8]
push str.sliceEndSize:
call fcn.004046d0
push dword [esi + 0x48]
call fcn.00423d44
xor ebx, ebx
add esp, 0x14
mov edi, eax
mov dword [ebp - 0x104], edi
cmp dword [esi + 4], ebx
jle 0x43aae9
mov ecx, dword [esi + 0x48]
lea edx, [esi + 0x20]
mov eax, ecx
imul eax, ebx
mov dword [ebp - 0x108], eax
mov eax, dword [esi + 4]
dec eax
cmp ebx, eax
jne 0x43a922
mov edi, dword [esi + 8]
test edi, edi
cmove edi, ecx
jmp 0x43a924
mov edi, ecx
lea eax, [ebp - 0x108]
mov ecx, edx
push eax
call fcn.00431230
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], edi
push eax
lea ecx, [esi + 0x20]
call fcn.00431230
mov eax, dword [ebp - 0x108]
sub esp, 0x18
mov ecx, esp
cdq
xorps xmm0, xmm0
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
movq qword [ecx + 0x10], xmm0
lea ecx, [ebp - 0xf0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::seekp_class_std::fpos_struct__Mbstatet__]
mov eax, edi
lea ecx, [ebp - 0x100]
cdq
push edx
push eax
push dword [ebp - 0x104]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
cmp dword [esi + 0xdc], 1
jne 0x43a9a9
push edi
push dword [ebp - 0x104]
call fcn.0043c650
add esp, 8
lea eax, [ebp - 0x40]
push eax
push edi
mov edi, dword [ebp - 0x104]
lea ecx, [ebp - 0x190]
push edi
call fcn.00423dc0
mov ecx, eax
call fcn.00423fc0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x120], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x43a9ee
mov eax, dword [ecx]
jmp 0x43a9f0
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00403be0
sub esp, 0x18
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x43aa21
mov eax, dword [ecx]
jmp 0x43aa23
mov eax, ecx
push 0x19
push str.checkUploadFile_md5str2_:
mov byte [eax], 0
call fcn.00403d00
mov byte [ebp - 4], 7
call fcn.004046e0
add esp, 0x30
mov byte [ebp - 0x20], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
push dword [ebp - 0x20]
call fcn.0040a110
lea eax, [ebp - 0x40]
mov byte [ebp - 0x20], 3
push eax
call fcn.00405d00
mov dword [ebp - 0x18], eax
add esp, 4
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x14], eax
mov al, byte [esi + 0x10]
mov byte [ebp - 4], 9
test al, al
je 0x43aa86
cmp al, 2
jne 0x43a714
jmp 0x43aaa9
push 2
lea ecx, [ebp - 0x114]
mov byte [esi + 0x10], 2
call fcn.00406d10
mov eax, dword [ebp - 0x114]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x110]
mov dword [esi + 0x1c], eax
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x20]
push eax
call fcn.0040b610
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.0040a110
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp eax, 0x10
jb 0x43aadf
push 1
inc eax
push eax
push dword [ebp - 0x40]
call fcn.004035c0
add esp, 0xc
inc ebx
cmp ebx, dword [esi + 4]
jl 0x43a8ff
push edi
call fcn.00423d4d
add esp, 4
lea ecx, [ebp - 0xe8]
call fcn.0042f310
test eax, eax
jne 0x43ab1b
push eax
mov eax, dword [ebp - 0x100]
lea ecx, [ebp - 0x100]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x88]
call fcn.0043a400
lea ecx, [ebp - 0x88]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040219c
mov esp, ebp
pop ebp
ret