Function at 0x41d580
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push esi
mov ebx, ecx
mov ecx, dword [0x67a8cc]
xor esi, esi
push edi
push esi
push eax
push ecx
call ebp
mov edx, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
lea eax, [ebx + 0x1d0]
push 1
push 2
push eax
call edi
mov eax, dword [0x67a8cc]
push 1
push 1
push eax
call ebp
mov ecx, dword [0x67a8cc]
lea edx, [ebx + 0x1d3]
push ecx
push 1
push 1
push edx
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x6c]
push eax
push 2
push 4
push ecx
call edi
mov edx, dword [0x67a8cc]
add esp, 0x48
lea eax, [esp + 0x24]
push edx
push 2
push 4
push eax
call edi
mov dword [ebx + 0x1ec], esi
mov dword [ebx + 0x1f0], esi
mov dword [ebx + 0x1f4], esi
mov dword [ebx + 0x1f8], esi
mov ecx, dword [0x67a8cc]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, eax
mov eax, dword [esp + 0x48]
add esp, 0x14
cmp eax, esi
mov dword [esp + 0x20], ecx
jne 0x41d66c
mov eax, dword [esp + 0x38]
cmp eax, esi
jne 0x41d789
mov eax, dword [esp + 0x24]
cmp eax, esi
jne 0x41d7f8
cmp dword [esp + 0x28], esi
jne 0x41d7f8
mov eax, dword [ebx + 8]
pop edi
or al, 4
pop esi
mov dword [ebx + 8], eax
pop ebp
mov eax, ecx
pop ebx
add esp, 0x34
ret 4
mov edx, dword [0x67a8cc]
push esi
push eax
push edx
call ebp
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x38]
push eax
push 1
push 8
push ecx
call edi
mov edx, dword [esp + 0x4c]
mov eax, dword [0x67a8cc]
push esi
push edx
push eax
call ebp
mov eax, dword [esp + 0x54]
add esp, 0x28
cmp eax, 2
mov dword [esp + 0x48], 2
jg 0x41d6ae
mov dword [esp + 0x48], eax
mov ecx, dword [0x67a8cc]
mov edx, dword [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x44]
push 4
push eax
call edi
movsx eax, word [ebx + 0x14]
movsx ecx, word [ebx + 0x10]
lea esi, [ebx + 0x10]
sub eax, ecx
add esp, 0x10
inc eax
movsx ecx, word [esi + 6]
movsx edx, word [esi + 2]
sub ecx, edx
or al, 1
inc ecx
or ecx, 1
push ecx
push eax
movsx eax, word [ebx + 0x12]
movsx ecx, word [esi]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004c9320
mov edx, dword [eax]
mov dword [esi], edx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
movsx ecx, word [esi + 6]
movsx edx, word [esi + 2]
movsx eax, word [esi + 4]
sub ecx, edx
inc ecx
push ecx
movsx ecx, word [esi]
sub eax, ecx
lea ecx, [esp + 0x14]
inc eax
push eax
push 0
push 0
call fcn.004c9320
mov edx, dword [eax]
mov dword [ebx + 0x34], edx
mov eax, dword [eax + 4]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x41d781
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], ecx
lea ecx, [ebx + 0x1d4]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x48]
mov eax, dword [edx]
test eax, eax
je 0x41d760
push esi
push eax
call fcn.004d5300
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
add ecx, 0xc
add edx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x18], eax
jne 0x41d74f
mov eax, dword [esp + 0x38]
test eax, eax
je 0x41d7f4
push 0
push eax
mov eax, dword [0x67a8cc]
push eax
call ebp
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x38]
push ecx
push 1
push 8
push edx
call edi
mov eax, dword [esp + 0x4c]
mov ecx, dword [0x67a8cc]
push 0
push eax
push ecx
call ebp
mov esi, dword [esp + 0x54]
add esp, 0x28
cmp esi, 2
jle 0x41d7c7
mov esi, 2
mov edx, dword [0x67a8cc]
lea eax, [ebx + 0x1ec]
push edx
push esi
push 4
push eax
call edi
add esp, 0x10
cmp esi, 2
jge 0x41d7f4
mov ecx, 2
lea edi, [ebx + esi*4 + 0x1ec]
sub ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
movsx ecx, word [ebx + 0x1d0]
dec ecx
je 0x41d8dc
dec ecx
je 0x41d876
dec ecx
jne 0x41d946
test eax, eax
je 0x41d838
push 0x1c
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41d830
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, eax
call fcn.004cf860
jmp 0x41d832
xor eax, eax
mov dword [ebx + 0x1f4], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41d946
push 0x1c
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41d93e
mov edx, dword [esp + 0x28]
mov ecx, eax
push edx
call fcn.004cf860
pop edi
pop esi
mov dword [ebx + 0x1f8], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x34
ret 4
test eax, eax
je 0x41d89e
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41d896
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, eax
call fcn.004cfd90
jmp 0x41d898
xor eax, eax
mov dword [ebx + 0x1f4], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41d946
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41d93e
mov edx, dword [esp + 0x28]
mov ecx, eax
push edx
call fcn.004cfd90
pop edi
pop esi
mov dword [ebx + 0x1f8], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x34
ret 4
test eax, eax
je 0x41d906
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41d8fe
mov ecx, dword [esp + 0x24]
push 0
push ecx
mov ecx, eax
call fcn.004cfb10
jmp 0x41d900
xor eax, eax
mov dword [ebx + 0x1f4], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41d946
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41d93e
mov edx, dword [esp + 0x28]
push 0
push edx
mov ecx, eax
call fcn.004cfb10
pop edi
pop esi
mov dword [ebx + 0x1f8], eax
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0x34
ret 4
xor eax, eax
mov dword [ebx + 0x1f8], eax
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4