Function at 0x4193ac
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov word [ebp - 0x114], dx
push edi
mov dword [ebp - 0x11c], esi
mov bh, byte [esi]
lea edi, [esi + 1]
mov ecx, dword [edi]
add edi, 4
mov byte [ebp - 0x111], bh
mov dword [ebp - 0x120], ecx
test bh, 0x20
je 0x4194e4
mov al, byte [edi + 4]
mov bl, byte [edi + 1]
add edi, 5
movzx esi, al
push esi
push edi
push 0x484178
mov byte [0x461c5f], bl
call fcn.0043a150
add esp, 0xc
add edi, esi
cmp bl, 0x10
jae 0x4194a6
movzx eax, bl
cmp dword [eax*4 + 0x4496b0], 0
jne 0x4194a6
mov ecx, 0x484178
call fcn.004102f9
cmp eax, 0xffffffff
jne 0x4194a6
mov al, byte [0x484178]
mov ecx, 0x484178
mov esi, ecx
jmp 0x41944d
cmp al, 0x2e
je 0x419453
inc esi
mov al, byte [esi]
test al, al
jne 0x419446
xor esi, esi
test esi, esi
je 0x4194a6
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.0042a833
mov ebx, eax
mov dword [ebp - 0x118], ebx
pop ecx
test ebx, ebx
je 0x41949a
push esi
push 0x484178
push ebx
call fcn.0043a150
mov ecx, dword [ebp - 0x118]
add esp, 0xc
mov byte [ebx + esi], 0
mov bl, byte [0x461c5f]
movzx eax, bl
mov dword [eax*4 + str.NxCoreInstall], ecx
jmp 0x4194a0
mov bl, byte [0x461c5f]
mov bh, byte [ebp - 0x111]
test bh, 0x40
je 0x4194d6
mov al, byte [edi]
inc edi
movzx esi, al
mov eax, 0x80
cmp esi, eax
cmovb eax, esi
push eax
movzx eax, bl
imul eax, eax, 0x188
push edi
add eax, 0x44ae44
push eax
call fcn.0043a150
add esp, 0xc
add edi, esi
mov esi, dword [ebp - 0x11c]
test bh, 0x10
je 0x4194e4
add edi, 8
test bh, 1
je 0x419585
cmp byte [0x484070], 0
je 0x419509
mov dl, 1
mov ecx, 0x484070
call fcn.0040f1d2
mov byte [0x484070], 0
mov ecx, 0x448d5c
call fcn.0040ebb1
mov ecx, 0x484070
call fcn.004104c3
push 0x484173
mov edx, 0x484178
mov ecx, eax
call fcn.0040e8b2
mov edx, str..tmp
sub edx, eax
cmp eax, 0x484173
jae 0x419548
mov cl, byte [edx + eax]
mov byte [eax], cl
inc eax
cmp byte [edx + eax], 0
jne 0x419535
xor edx, edx
mov byte [eax], dl
mov cl, byte [0x484070]
call fcn.0040f8eb
test eax, 0x3fffffc0
je 0x41957f
push edx
push 0x8000080
push 2
push edx
push edx
push 0x40000000
push 0x484070
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x448d5c], eax
jmp 0x41958a
mov byte [0x484070], dl
mov eax, dword [0x448d5c]
cmp eax, 0xffffffff
je 0x41975d
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 0x118]
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp - 0x120]
cmp eax, ecx
jne 0x419724
xor ecx, ecx
cmp ecx, edx
jne 0x419724
push ecx
mov ecx, dword [0x448d5c]
xor edx, edx
push eax
call fcn.0040ee40
pop ecx
pop ecx
cmp eax, dword [ebp - 0x120]
jne 0x419724
xor eax, eax
cmp edx, eax
jne 0x419724
movzx eax, word [ebp - 0x114]
mov edx, edi
mov ecx, dword [0x448d5c]
sub eax, edi
add eax, esi
push eax
call fcn.00401dab
test al, al
je 0x419724
test bh, 2
je 0x41975d
mov ecx, 0x448d5c
call fcn.0040ebb1
cmp byte [0x484070], 0
mov edi, 0x484070
mov ecx, edi
je 0x419634
inc ecx
cmp byte [ecx], 0
jne 0x41962e
test bh, 4
je 0x41975d
mov eax, ecx
sub eax, edi
cmp eax, 4
jle 0x41975d
push 0x7fff
add ecx, 0xfffffffc
mov edx, str..tmp
call fcn.00428b6b
test eax, eax
jne 0x41975d
push 0x484178
push str.Received:__s
push eax
push 0x100
push eax
push eax
call fcn.00420600
add esp, 0x18
lea ecx, [ebp - 0x110]
call fcn.004104c3
mov bl, byte [0x484178]
mov esi, eax
mov edx, esi
test bl, bl
je 0x4196aa
mov ecx, 0x484178
sub ecx, esi
mov byte [edx], bl
inc edx
mov al, byte [ecx + edx]
mov bl, al
test al, al
jne 0x41969e
xor ebx, ebx
mov ecx, edi
mov byte [edx], bl
lea edx, [ebp - 0x110]
call fcn.0040f1a3
test al, al
je 0x419702
mov dl, 1
mov ecx, edi
call fcn.0040f1d2
push 1
mov edx, 0x484178
mov byte [esi], bl
lea ecx, [ebp - 0x110]
call fcn.004103dc
movzx ecx, byte [0x461c5f]
mov dl, 1
call fcn.00420a7f
push 0xa
pop ecx
cmp dword [0x481f54], ecx
cmovg ecx, dword [0x481f54]
mov dword [0x481f54], ecx
jmp 0x419757
lea eax, [ebp - 0x110]
push eax
push edi
push str.Failed_to_copy__s_to__s
push 2
push 0x108
push ebx
push ebx
call fcn.00420600
add esp, 0x1c
mov ecx, edi
jmp 0x419750
mov ecx, 0x448d5c
call fcn.0040ebb1
push 0x484178
push str.Download_failed_for__s
push 1
push 0x100
xor ebx, ebx
push ebx
push ebx
call fcn.00420600
add esp, 0x18
mov ecx, 0x484070
mov dl, 1
call fcn.0040f1d2
mov byte [0x484070], bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret