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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a8aa
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x54], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x110], ecx
mov byte [ebp - 0x45], 0
push 0
mov ecx, dword [ebp + 8]
call fcn.0040acf0
push eax
call fcn.00493d87
add esp, 8
test eax, eax
je 0x4bda63
xor al, al
jmp 0x4bde5b
push 0
push 0x80
push 4
push 0
push 1
push bind
mov ecx, dword [ebp + 8]
call fcn.0040acf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x10], 0xffffffff
je 0x4bdab8
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4bdac5
xor al, al
jmp 0x4bde5b
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x1c], 0
je 0x4bdaed
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0048e173
add esp, 4
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
je 0x4bdb28
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x10]
push ecx
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x14], 0x44454352
jne 0x4bdd46
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x1c]
jne 0x4bdd46
cmp dword [ebp - 0x44], 1
jne 0x4bdd46
mov dword [ebp - 0xb4], 0x22
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
push ecx
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0x1c]
sub edx, 0x80
mov dword [ebp - 0x4c], edx
push 0x22
push 0x30
lea eax, [ebp - 0x94]
push eax
call fcn.00491e40
add esp, 0xc
push 6
lea ecx, [ebp - 0xd8]
push ecx
call dword [sym.imp.GetMACAddress.dll_GetMACAddress]
add esp, 8
mov byte [ebp - 0xbc], 0
xor edx, edx
mov dword [ebp - 0xbb], edx
mov byte [ebp - 0xb7], dl
push 6
lea eax, [ebp - 0xd8]
push eax
push 6
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00491940
add esp, 0x10
push 6
lea edx, [ebp - 0xbc]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.0050dee0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0xb0]
push edx
call fcn.0051f360
add esp, 8
mov byte [ebp - 4], 1
push fcn.00499327
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0042ada0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0xec]
push edx
lea ecx, [ebp - 0xb0]
call fcn.0042a850
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0xb0]
call fcn.0042ada0
mov edx, dword [eax]
push edx
lea eax, [ebp - 0xf4]
push eax
call fcn.0045e060
add esp, 0x14
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0xb0]
call fcn.004214e0
push eax
mov edx, dword [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0x40]
add eax, 0x28
push eax
call fcn.004bcbb0
add esp, 0x10
push 0x10
lea ecx, [ebp - 0xd0]
push ecx
push 0x22
lea edx, [ebp - 0x94]
push edx
call fcn.0051bd00
add esp, 0x10
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0048e173
add esp, 4
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x40]
add eax, 0x80
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.00491940
add esp, 0x10
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
lea edx, [ebp - 0xd0]
push edx
call fcn.005202b0
add esp, 0xc
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x40]
push eax
call fcn.00491940
add esp, 0x10
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x50], 0
je 0x4bdd28
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0xfc], edx
mov eax, dword [ebp - 0xfc]
push eax
call fcn.00491935
add esp, 4
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.00402ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00402c30
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x3c]
call fcn.004bb690
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004bc180
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x38]
call fcn.0042a740
mov ecx, dword [eax]
mov dword [ebp - 0xdc], ecx
lea edx, [ebp - 0x104]
push edx
lea ecx, [ebp - 0x38]
call fcn.00441520
mov eax, dword [eax]
mov dword [ebp - 0xe0], eax
jmp 0x4bdda7
lea ecx, [ebp - 0xdc]
call fcn.004666c0
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0xdc]
call fcn.00429660
movzx edx, al
test edx, edx
je 0x4bdde7
lea ecx, [ebp - 0xdc]
call fcn.0047bf90
mov eax, dword [eax]
cmp dword [eax + 4], 4
jne 0x4bdde5
lea ecx, [ebp - 0xdc]
call fcn.0047bf90
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
jmp 0x4bdde7
jmp 0x4bdd9c
cmp dword [ebp - 0x18], 0
je 0x4bde08
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 0x3a8
call fcn.004bcfd0
add esp, 0xc
mov byte [ebp - 0x45], al
cmp dword [ebp - 0x10], 0xffffffff
je 0x4bde18
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], 0
je 0x4bde3d
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x108], edx
mov eax, dword [ebp - 0x108]
push eax
call fcn.00491935
add esp, 4
mov dword [ebp - 0x40], 0
mov cl, byte [ebp - 0x45]
mov byte [ebp - 0x109], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004bb630
mov al, byte [ebp - 0x109]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x54]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret 4