Function at 0x1003ffe3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004f8e0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x530
mov eax, dword [0x1005a030]
xor eax, ebp
mov dword [ebp - 0x74], 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 - 0x520], ecx
mov dword [ebp - 0x14], 0
push 0x38
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.1001c970
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x1003fbe3
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x524], ecx
mov edx, dword [ebp - 0x524]
add edx, 1
mov dword [ebp - 0x528], edx
mov eax, dword [ebp - 0x524]
mov cl, byte [eax]
mov byte [ebp - 0x529], cl
add dword [ebp - 0x524], 1
cmp byte [ebp - 0x529], 0
jne 0x1003fbad
mov edx, dword [ebp - 0x524]
sub edx, dword [ebp - 0x528]
mov dword [ebp - 0x530], edx
jne 0x1003fc79
jmp 0x10040396
push 0
push 0
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x1003fca0
jmp 0x10040396
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x1004037e
cmp dword [ebp - 0x1c], 0xa00000
jae 0x1004037e
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1001a634
add esp, 4
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x1003fcec
jmp 0x10040336
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x1c]
je 0x1003fd21
jmp 0x10040336
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
mov dword [ebp - 0x54], edx
mov ax, word [ecx + 4]
mov word [ebp - 0x50], ax
mov ecx, dword [ebp - 0x1c]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x58]
add edx, 4
push edx
call fcn.10031af0
add esp, 8
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x54]
je 0x1003fd57
jmp 0x10040336
movzx ecx, byte [ebp - 0x50]
shl ecx, 8
mov word [0x10072e48], cx
movzx edx, byte [ebp - 0x4f]
shl edx, 8
mov word [0x10072e44], dx
mov eax, dword [ebp - 0x1c]
sub eax, 6
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 6
push ecx
call fcn.10031a90
mov ecx, 0xe
mov esi, dword [ebp - 0x58]
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x20], 0
jbe 0x1004007c
cmp dword [ebp - 0x20], 0xff
jae 0x1004007c
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, 0x108
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001a634
add esp, 4
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x10040075
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x108
push ecx
mov edx, dword [ebp - 0x58]
add edx, 0x38
push edx
mov eax, dword [ebp - 0x64]
push eax
call fcn.1001d000
add esp, 0xc
mov ecx, dword [ebp - 0x520]
add ecx, 0xd0
call fcn.10035f40
mov ecx, dword [ebp - 0x520]
add ecx, 0xa0
call fcn.10035ec0
mov dword [ebp - 0x68], 0
jmp 0x1003fe30
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
cmp edx, dword [ebp - 0x20]
jae 0x10040031
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ax, word [0x100520bc]
mov word [ebp - 0x188], ax
mov byte [ebp - 0x69], 0x23
mov ecx, dword [ebp - 0x68]
imul ecx, ecx, 0x108
mov edx, dword [ebp - 0x64]
mov al, byte [edx + ecx]
mov byte [ebp - 0x181], al
lea ecx, [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x68]
imul edx, edx, 0x108
add edx, dword [ebp - 0x64]
push edx
call fcn.10029190
add esp, 8
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x1003ff65
mov byte [ebp - 0x1b0], 0
xor eax, eax
mov dword [ebp - 0x1af], eax
mov dword [ebp - 0x1ab], eax
mov dword [ebp - 0x1a7], eax
mov dword [ebp - 0x1a3], eax
mov dword [ebp - 0x19f], eax
mov dword [ebp - 0x19b], eax
mov dword [ebp - 0x197], eax
mov dword [ebp - 0x193], eax
mov ecx, dword [ebp - 0x70]
add ecx, 1
mov dword [ebp - 0x534], ecx
lea edx, [ebp - 0x1b0]
mov dword [ebp - 0x538], edx
mov eax, dword [ebp - 0x538]
mov dword [ebp - 0x53c], eax
mov ecx, dword [ebp - 0x534]
mov dl, byte [ecx]
mov byte [ebp - 0x53d], dl
mov eax, dword [ebp - 0x538]
mov cl, byte [ebp - 0x53d]
mov byte [eax], cl
mov edx, dword [ebp - 0x534]
add edx, 1
mov dword [ebp - 0x534], edx
mov eax, dword [ebp - 0x538]
add eax, 1
mov dword [ebp - 0x538], eax
cmp byte [ebp - 0x53d], 0
jne 0x1003fef0
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.1001af29
add esp, 4
mov dword [ebp - 0x18c], eax
lea edx, [ebp - 0x18c]
push edx
mov ecx, dword [ebp - 0x520]
add ecx, 0xd0
call fcn.1003ef70
jmp 0x1004002c
movsx eax, byte [ebp - 0x181]
movsx ecx, byte [ebp - 0x69]
cmp eax, ecx
jne 0x1003ffe5
mov dword [ebp - 4], 0
mov byte [ebp - 0x1b8], 0
xor edx, edx
mov dword [ebp - 0x1b7], edx
mov byte [ebp - 0x1b3], dl
push 5
mov eax, dword [ebp - 0x68]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x64]
lea edx, [ecx + eax + 1]
push edx
lea eax, [ebp - 0x1b8]
push eax
call fcn.10030060
add esp, 0xc
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.1001af29
add esp, 4
mov edx, dword [ebp - 0x520]
mov dword [edx + 0xe8], eax
jmp 0x1003ffdc
mov dword [ebp - 4], 0xffffffff
jmp 0x1004002c
mov esi, dword [ebp - 0x68]
imul esi, esi, 0x108
add esi, dword [ebp - 0x64]
mov ecx, 0x41
lea edi, [ebp - 0x180]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x68]
imul eax, eax, 0x108
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + eax + 0x104]
mov dword [ebp - 0x7c], edx
lea eax, [ebp - 0x180]
push eax
mov ecx, dword [ebp - 0x520]
add ecx, 0xa0
call fcn.1003ee20
jmp 0x1003fe27
mov dword [ebp - 4], 2
cmp dword [ebp - 0x64], 0
je 0x10040056
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x2d0], ecx
mov edx, dword [ebp - 0x2d0]
push edx
call fcn.1001b14f
add esp, 4
jmp 0x10040065
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x64], 0
jmp 0x1004007c
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x24], 0
jbe 0x1004031a
cmp dword [ebp - 0x24], 0xff
jae 0x1004031a
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov edx, 0x28
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001a634
add esp, 4
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
je 0x10040313
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x28
push ecx
mov edx, dword [ebp - 0x20]
imul edx, edx, 0x108
mov eax, dword [ebp - 0x58]
lea ecx, [eax + edx + 0x38]
push ecx
mov edx, dword [ebp - 0x1bc]
push edx
call fcn.1001d000
add esp, 0xc
mov ecx, dword [ebp - 0x520]
add ecx, 0xb8
call fcn.10035f00
mov ecx, dword [ebp - 0x520]
add ecx, 0x70
call fcn.10035e80
mov ecx, dword [ebp - 0x520]
add ecx, 0x88
call fcn.10035e80
mov dword [ebp - 0x1c0], 0
jmp 0x10040140
mov eax, dword [ebp - 0x1c0]
add eax, 1
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1c0]
cmp ecx, dword [ebp - 0x24]
jae 0x100402c6
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x1c0]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1bc]
mov cl, byte [eax + edx]
mov byte [ebp - 0x1c1], cl
mov byte [ebp - 0x1c2], 0x2a
mov byte [ebp - 0x1c3], 0x23
movsx edx, byte [ebp - 0x1c1]
movsx eax, byte [ebp - 0x1c2]
cmp edx, eax
jne 0x100401e7
push 0x64
mov ecx, dword [ebp - 0x1c0]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x1bc]
lea eax, [edx + ecx + 1]
push eax
lea ecx, [ebp - 0x230]
push ecx
call fcn.10030060
add esp, 0xc
mov edx, dword [ebp - 0x1c0]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [eax + edx + 0x24]
mov dword [ebp - 0x1cc], ecx
lea edx, [ebp - 0x230]
push edx
mov ecx, dword [ebp - 0x520]
add ecx, 0x70
call fcn.1003ed80
jmp 0x100402c1
movsx eax, byte [ebp - 0x1c1]
movsx ecx, byte [ebp - 0x1c3]
cmp eax, ecx
jne 0x10040251
push 0x64
mov edx, dword [ebp - 0x1c0]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1bc]
lea ecx, [eax + edx + 1]
push ecx
lea edx, [ebp - 0x298]
push edx
call fcn.10030060
add esp, 0xc
mov eax, dword [ebp - 0x1c0]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ecx + eax + 0x24]
mov dword [ebp - 0x234], edx
lea eax, [ebp - 0x298]
push eax
mov ecx, dword [ebp - 0x520]
add ecx, 0x88
call fcn.1003ed80
jmp 0x100402c1
mov esi, dword [ebp - 0x1c0]
imul esi, esi, 0x28
add esi, dword [ebp - 0x1bc]
mov ecx, 8
lea edi, [ebp - 0x2c4]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c0]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + ecx + 0x24]
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x1c0]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x1bc]
mov eax, dword [edx + ecx + 0x24]
push eax
call fcn.10031ef0
add esp, 4
mov dword [ebp - 0x29c], eax
lea ecx, [ebp - 0x2c4]
push ecx
mov ecx, dword [ebp - 0x520]
add ecx, 0xb8
call fcn.1003eed0
jmp 0x10040131
mov dword [ebp - 4], 4
cmp dword [ebp - 0x1bc], 0
je 0x100402f1
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x2d8], edx
mov eax, dword [ebp - 0x2d8]
push eax
call fcn.1001b14f
add esp, 4
jmp 0x10040300
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1bc], 0
jmp 0x1004031a
mov dword [ebp - 0x24], 0
mov ecx, 0xa
lea esi, [ebp - 0x4c]
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], 1
xor ecx, ecx
jne 0x1003fce1
cmp dword [ebp - 0x58], 0
je 0x1004037e
mov dword [ebp - 4], 6
cmp dword [ebp - 0x58], 0
je 0x10040361
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0x2dc]
push eax
call fcn.1001b14f
add esp, 4
jmp 0x10040370
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x18], 0xffffffff
je 0x1004038e
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
jne 0x1003fb7f
cmp dword [ebp - 0x14], 0
jne 0x100403fc
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x5a
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x3c
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
xor eax, eax
jmp 0x100404bd
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x1004040f
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0xa
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0
jne 0x10040422
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xa
mov eax, 1
jmp 0x100404bd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x74]
xor ecx, ebp
call fcn.1001a63f
mov esp, ebp
pop ebp
ret 8