Function at 0x404d40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0x20]
mov ebx, eax
push dword [ebp + 0x1c]
mov esi, ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405ef2
add esp, 0x20
test eax, eax
je 0x404e9e
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebx + 0xa4]
je 0x404dbc
cmp dword [ebx], edi
mov ecx, 0xf000
mov eax, 0x8000
jl 0x404d9d
mov dx, word [ebx + 0xe]
mov esi, ecx
and dx, si
mov esi, eax
cmp dx, si
jne 0x404dbc
cmp dword [ebx + 0x88], edi
jl 0x404e88
mov dx, word [ebx + 0x96]
and dx, cx
cmp dx, ax
je 0x404e88
mov eax, dword [ebx]
cmp eax, dword [ebx + 0x88]
jne 0x404dce
mov dword [ebp - 4], edi
jmp 0x40503f
lea esi, [ebx + 0x3c]
mov dword [ebp - 8], 2
mov edi, 0x2000
push edi
push dword [esi]
call fcn.00406807
mov dword [esi], eax
pop ecx
add esi, 0x88
dec dword [ebp - 8]
pop ecx
jne 0x404ddd
lea esi, [ebx + 0x44]
mov dword [ebp - 8], 2
cmp dword [esi - 0x44], 0
jl 0x404e39
jmp 0x404e35
mov eax, dword [esi]
mov ecx, edi
sub ecx, eax
push ecx
mov ecx, dword [esi - 8]
add ecx, eax
push ecx
push dword [esi - 0x44]
call fcn.00442af0
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x404e39
jge 0x404e30
push dword [esi - 0x40]
call fcn.00405082
pop ecx
mov eax, dword [ebp - 4]
add dword [esi], eax
cmp dword [esi], edi
jne 0x404e06
add esi, 0x88
dec dword [ebp - 8]
jne 0x404dfe
mov eax, dword [ebx + 0x44]
cmp eax, dword [ebx + 0xcc]
jne 0x404e88
test eax, eax
je 0x404e69
push eax
push dword [ebx + 0xc4]
push dword [ebx + 0x3c]
call fcn.00442bed
add esp, 0xc
test eax, eax
jne 0x404e88
lea esi, [ebx + 0x44]
cmp dword [esi], edi
jne 0x404e7f
and dword [ebx + 0xcc], 0
and dword [esi], 0
jmp 0x404df7
and dword [ebp - 4], 0
jmp 0x40503f
mov edi, dword [ebp + 0x24]
mov esi, ebx
mov dword [ebp - 4], 1
call fcn.00406e1b
jmp 0x40503f
mov eax, dword [ebx + 0xd8]
mov ecx, dword [ebx + 0x50]
lea esi, [eax + ecx + 4]
mov eax, esi
call fcn.004050a4
push esi
push edi
push eax
mov dword [ebx + 0x78], eax
call fcn.00442290
inc dword [ebx + 0x78]
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x50]
lea eax, [eax + ecx + 2]
push ebx
mov dword [ebx + 0x100], eax
call fcn.004050c6
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0xfc]
mov dword [0x482048], eax
mov eax, dword [ebx + 0xf4]
mov dword [0x482044], eax
mov eax, dword [ebx + 0x74]
lea esi, [eax + ecx + 3]
mov eax, esi
shl eax, 3
call fcn.004050a4
mov edx, dword [ebx + 0xfc]
lea ecx, [eax + esi*4]
shl edx, 2
push 0x22
lea eax, [eax + edx + 4]
mov dword [0x482040], eax
lea eax, [ecx + edx + 4]
pop ecx
push 0x22
mov esi, ebx
mov edi, 0x481f30
rep movsd dword es:[edi], dword [esi]
pop ecx
lea esi, [ebx + 0x88]
mov edi, 0x481fb8
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0xfc]
xor esi, esi
push esi
push dword [ebx + 0x74]
mov dword [0x481f2c], eax
push esi
call fcn.004053f6
mov eax, dword [ebx + 0xfc]
mov ecx, dword [0x482040]
lea eax, [eax*4 + 4]
sub ecx, eax
push ecx
call fcn.004419f5
add esp, 0x24
mov ecx, ebx
call fcn.004054e6
xor edi, edi
inc edi
mov ecx, ebx
cmp dword [0x481f24], edi
jne 0x404f85
call fcn.004055bc
jmp 0x404f8a
call fcn.00405642
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], esi
setne al
mov dword [ebp - 4], eax
cmp eax, esi
je 0x404fde
mov eax, dword [0x481f34]
mov dword [0x481f20], eax
mov eax, dword [0x481fbc]
mov dword [0x481f1c], eax
mov eax, dword [0x481f24]
sub eax, esi
mov dword [0x481f28], esi
je 0x404fcc
dec eax
jne 0x404fde
push dword [ebp + 0x24]
push 0x405d49
jmp 0x404fd4
push dword [ebp + 0x24]
push 0x405d49
mov eax, dword [ebp - 8]
call fcn.00405b33
pop ecx
pop ecx
push dword [ebx + 0x6c]
call fcn.004419f5
mov eax, dword [ebx + 0x78]
dec eax
push eax
call fcn.004419f5
pop ecx
pop ecx
lea esi, [ebx + 0xf0]
push dword [esi]
call fcn.004419f5
dec edi
sub esi, 0x88
pop ecx
test edi, edi
jge 0x404ff8
push 2
lea esi, [ebx + 0x48]
pop edi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea eax, [ecx + eax*4]
push eax
call fcn.004419f5
add esi, 0x88
dec edi
pop ecx
jne 0x405011
mov eax, dword [ebp - 8]
test eax, eax
je 0x40503f
mov esi, dword [eax]
push eax
call fcn.004419f5
pop ecx
mov eax, esi
test esi, esi
jne 0x405030
lea esi, [ebx + 0xc4]
mov ebx, dword [ebx + 0x3c]
cmp ebx, dword [esi]
je 0x405053
push ebx
call fcn.004419f5
pop ecx
push dword [esi]
call fcn.004419f5
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave