Function at 0x4181a0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4b49ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov eax, dword [0x4bd8ac]
mov dword [esp + 0x10], ecx
mov cx, word [0x4bd8b0]
push ebx
push ebp
push esi
push edi
mov word [esp + 0x28], cx
mov dword [esp + 0x24], eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2c]
xor bl, bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
or ecx, 0xffffffff
mov edi, 0x4bd8d4
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x13], 0
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x1c], 0
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4bd888
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4bd884
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x2c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4bd884
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
push eax
and ecx, 3
lea eax, [esp + 0x40]
push closesocket
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp esi, 0xffffffff
mov ebp, eax
je 0x418316
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [esp + 0x2c]
push 0x4bd878
push ecx
call fcn.004a7d19
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4185d7
lea edi, [ebp + 1]
push edi
call fcn.004a71d4
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [esp + 0x1c], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
push edi
push 1
push ebp
push esi
call fcn.004a7d2c
push edi
call fcn.004a7b32
push 0x114
call fcn.004a71d4
add esp, 0x1c
mov dword [esp + 0x14], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x234], ecx
je 0x41839c
lea ecx, [esp + 0x24]
push ecx
push esi
mov ecx, eax
call fcn.004a60f0
mov dword [esp + 0x14], eax
jmp 0x4183a0
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x14]
or ebp, 0xffffffff
mov ecx, edi
mov dword [esp + 0x234], ebp
call fcn.004a6150
mov esi, eax
test esi, esi
je 0x4185f9
mov al, byte [esp + 0x13]
test al, al
je 0x41858f
movsx eax, al
dec eax
jne case.default.0x4183e2
movsx eax, bl
dec eax
cmp eax, 3
ja case.default.0x4183e2
jmp dword [eax*4 + 0x418628]
mov edi, esi
mov ecx, ebp
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x418421
mov al, byte [edx + esi]
cmp al, 0x2d
je 0x418411
cmp al, 0x30
jl 0x4185bc
cmp al, 0x39
jg 0x4185bc
mov edi, esi
mov ecx, ebp
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x4183fa
push esi
call fcn.004a7ece
mov ebx, dword [esp + 0x24]
add esp, 4
mov ecx, dword [ebx + eax*4 + 0x6fcb8]
test ecx, ecx
jne 0x4185f2
push 0x28
call fcn.004a71d4
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x234], 1
je 0x418465
mov ecx, eax
call fcn.004a59d0
mov edi, eax
jmp 0x418467
xor edi, edi
push esi
mov dword [esp + 0x238], ebp
call fcn.004a7ece
push esi
mov dword [ebx + eax*4 + 0x6fcb8], edi
call fcn.004a7ece
add esp, 8
mov dword [esp + 0x1c], eax
mov bl, 2
jmp case.default.0x4183e2
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
mov ecx, dword [ebx + edx*4 + 0x6fcb8]
add ecx, 4
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov byte [ecx + 0x14], al
mov ecx, ebp
repne scasb al, byte es:[edi]
mov edi, dword [ebx + edx*4 + 0x6fcb8]
mov bl, 3
not ecx
dec ecx
add edi, 4
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.default.0x4183e2
mov edi, esi
mov ecx, ebp
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x418514
mov al, byte [edx + esi]
cmp al, 0x2d
je 0x418504
cmp al, 0x30
jl 0x4185f2
cmp al, 0x39
jg 0x4185f2
mov edi, esi
mov ecx, ebp
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x4184ed
push esi
call fcn.004a7ece
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 4
mov bl, 4
mov ecx, dword [ecx + edx*4 + 0x6fcb8]
mov dword [ecx + 0x20], eax
jmp case.default.0x4183e2
mov edi, esi
mov ecx, ebp
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41856b
mov al, byte [edx + esi]
cmp al, 0x2d
je 0x41855b
cmp al, 0x30
jl 0x4185f2
cmp al, 0x39
jg 0x4185f2
mov edi, esi
mov ecx, ebp
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x418544
push esi
call fcn.004a7ece
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add esp, 4
mov byte [esp + 0x13], 0
mov edx, dword [edx + ecx*4 + 0x6fcb8]
xor bl, bl
mov byte [edx + 0x24], al
jmp case.default.0x4183e2
mov ecx, 5
mov edi, 0x4bd8cc
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne case.default.0x4183e2
mov byte [esp + 0x13], 1
mov bl, 1
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.004a6150
mov esi, eax
test esi, esi
je 0x4185f9
jmp 0x4183bf
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004a71c9
mov ecx, dword [esp + 0x18]
add esp, 4
test ecx, ecx
je 0x4185d7
mov edx, dword [ecx]
push 1
call dword [edx]
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
mov eax, dword [esp + 0x18]
push eax
jmp 0x4185c1
test edi, edi
je 0x418605
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004a71c9
mov al, byte [esp + 0x17]
add esp, 4
test al, al
jne 0x4185d7
test bl, bl
jne 0x4185d7
mov eax, 1
jmp 0x4185d9