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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d20cd
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x51808c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x80], edi
mov esi, dword [ebp + 8]
xor bl, bl
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x438202
mov eax, dword [esi]
push 0
push eax
call fcn.004b7ce2
add esp, 8
test eax, eax
jne 0x438749
mov edx, dword [0x5195bc]
test edx, edx
je 0x43864b
mov ecx, dword [0x5199c4]
test ecx, ecx
je 0x43864b
add edi, 0x3c
cmp edi, 0x5195ac
je 0x43825e
cmp dword [0x5195c0], 0x10
mov eax, 0x5195ac
push edx
cmovae eax, dword [0x5195ac]
mov ecx, edi
push eax
call fcn.0040a470
mov ecx, dword [0x5199c4]
mov edx, dword [ebp - 0x80]
add edx, 0x54
cmp edx, 0x5199b4
je 0x438288
cmp dword [0x5199c8], 0x10
mov eax, 0x5199b4
push ecx
cmovae eax, dword [0x5199b4]
mov ecx, edx
push eax
call fcn.0040a470
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x7c], vtable.CMitFile.0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], bl
mov dword [ebp - 0x78], 0
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.00411530
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x7c]
push closesocket
cmovae eax, dword [ebp - 0x44]
push 3
push eax
call fcn.00417e00
mov byte [ebp - 4], 0
mov esi, eax
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x438317
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43830d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43876f
push edx
push ecx
call fcn.004a4ef3
add esp, 8
test esi, esi
je 0x438444
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x8c]
push eax
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x8c], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x88], 0
mov esi, dword [ebp - 0x8c]
jg 0x438358
jl 0x438444
test esi, esi
je 0x438444
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 3
mov dword [ebp - 0x90], 0
test esi, esi
jne 0x4383a6
mov dword [ebp - 0x1c], esi
mov byte [ebp + esi - 0x2c], 0
jmp 0x4383dd
cmp esi, 0xf
ja 0x4383c4
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
push 0
push eax
call fcn.004a68e0
add esp, 0xc
mov byte [ebp + esi - 0x2c], 0
jmp 0x4383dd
push 0
push esi
mov byte [ebp - 0x88], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x88]
push esi
call fcn.0040ab90
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x90]
push 0
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x438451
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x438432
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x438428
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438774
push edx
push ecx
call fcn.004a4ef3
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x7c]
call fcn.00417d00
jmp 0x438749
lea eax, [ebp - 0x5c]
mov edx, 0x5195ac
push eax
push 0x5199b4
lea ecx, [ebp - 0x2c]
call fcn.00416840
add esp, 8
test al, al
jne 0x4384f9
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x4384a6
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43849c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438774
push edx
push ecx
call fcn.004a4ef3
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4384da
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4384d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438774
push edx
push ecx
call fcn.004a4ef3
add esp, 8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00417d00
jmp 0x438749
cmp dword [ebp - 0x48], 0x10
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x44], 0
cmovae edx, dword [ebp - 0x5c]
mov ecx, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x438522
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.0040a470
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x30], 0x10
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00438a10
mov edx, dword [ebp - 0x30]
test eax, eax
sete bl
cmp edx, 0x10
jb 0x438589
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43857f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438774
push edx
push ecx
call fcn.004a4ef3
add esp, 8
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x4385bd
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4385b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438774
push edx
push ecx
call fcn.004a4ef3
add esp, 8
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4385f1
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4385e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438774
push edx
push ecx
call fcn.004a4ef3
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
test edi, edi
je 0x43860e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x438749
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43863c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438774
push edx
push ecx
call fcn.004a4ef3
add esp, 8
jmp 0x438749
mov edx, dword [esi + 0x10]
xor bl, bl
test edx, edx
je 0x438749
lea ecx, [edi + 0x24]
cmp ecx, esi
je 0x438670
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x438669
mov eax, dword [esi]
push edx
push eax
call fcn.0040a470
cmp dword [esi + 0x14], 0x10
jb 0x438678
mov esi, dword [esi]
push 0x5047ec
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0
push esi
push eax
call fcn.004aa085
mov ebx, dword [ebp - 0x88]
add esp, 0xc
test ebx, ebx
jne 0x4386a9
lea esi, [ebx - 3]
jmp 0x438744
push 2
push 0
push ebx
call fcn.004aa54f
add esp, 0xc
test eax, eax
je 0x4386c1
mov esi, 0xfffffffd
jmp 0x438736
push ebx
call fcn.004a9f54
mov esi, eax
add esp, 4
test esi, esi
js 0x4386ba
jne 0x4386d6
xor esi, esi
jmp 0x438736
lea eax, [esi + 1]
push 0x4ec5b4
push eax
call fcn.004a512f
mov edi, eax
add esp, 8
test edi, edi
jne 0x4386f2
lea esi, [eax - 2]
jmp 0x438736
push 0
push 0
push ebx
mov byte [edi + esi], 0
call fcn.004aa54f
add esp, 0xc
push ebx
push esi
push 1
push edi
call fcn.004aaae4
add esp, 0x10
cmp eax, esi
je 0x438721
push edi
call fcn.004a4f24
mov esi, 0xfffffffd
jmp 0x438733
mov ecx, dword [ebp - 0x80]
push eax
push edi
call fcn.00438a10
push edi
mov esi, eax
call fcn.004a4f24
add esp, 4
push dword [ebp - 0x88]
call fcn.004aa1f1
add esp, 4
test esi, esi
sete bl
mov eax, dword [ebp - 0x80]
mov byte [eax + 0x6c], bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4a5b
mov esp, ebp
pop ebp
ret 0xc
call fcn.004aae73
call fcn.004aae73
int3