Function at 0x554990
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x98
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x14], ebp
mov eax, dword [ebp + 0x58]
mov dword [esp + 0x10], 1
test eax, eax
je 0x554ac1
cmp word [esp + 0xb0], 0
jne 0x554c27
mov eax, dword [esp + 0xac]
push 0x40
push 0x69a9d0
push eax
call dword [fcn.0065f1e8]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x554c27
push esi
call fcn.00476080
mov edi, eax
push edi
mov dword [esp + 0x2c], edi
call fcn.00643b70
add esp, 8
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
push esi
jne 0x554a21
call dword [fcn.0065f1c0]
add esp, 4
or eax, 0xffffffff
mov word [ebp + 0x5c], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
push 1
push edi
push ebx
call dword [fcn.0065f1bc]
add esp, 0x10
cmp eax, 1
push esi
je 0x554a57
call dword [fcn.0065f1c0]
push ebx
call fcn.00643cfc
add esp, 8
or eax, 0xffffffff
mov word [ebp + 0x5c], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
call dword [fcn.0065f1c0]
lea eax, [ebp + 4]
mov ecx, 0x15
mov esi, ebx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add esp, 4
lea esi, [ebp + 0x5e]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x554a95
test cl, cl
je 0x554a91
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x554a95
add eax, 2
add esi, 2
test cl, cl
jne 0x554a71
xor eax, eax
jmp 0x554a9a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x554ab8
mov eax, dword [ebp + 0x4c]
mov esi, dword [esp + 0x24]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, dword [ebp + 0x44]
shl ecx, 2
lea edx, [eax + ecx]
cmp edx, esi
jbe 0x554ad5
push ebx
call fcn.00643cfc
add esp, 4
or eax, 0xffffffff
pop edi
mov word [ebp + 0x5c], ax
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8
mov edi, dword [ebp + 0x58]
lea esi, [eax + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x20
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
jmp 0x554b04
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax - 4]
sub eax, 4
dec ebx
mov dword [esp + 0x10], ebx
lea ebx, [ecx + ecx*4]
mov ecx, dword [ebp + 0x58]
mov dword [esp + 0x18], eax
lea ebx, [ebx + ebx*4]
shl ebx, 2
lea ebp, [ebx + ecx]
mov dword [ebp + 0x44], 0
mov ecx, dword [ebp + 0x40]
test ecx, ecx
je 0x554ba9
cmp ecx, 0x40
je 0x554ba9
mov edx, dword [ebp + 0x48]
push edx
call fcn.00643b70
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [edx + 0x58]
mov dword [ebx + ecx + 0x44], eax
mov esi, dword [edx + 0x58]
mov ecx, dword [ebp + 0x48]
xor eax, eax
mov edi, dword [ebx + esi + 0x44]
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x4c]
mov esi, dword [edx + 0x48]
mov ecx, dword [ebp + 0x48]
lea edi, [esi + eax]
add edi, ecx
cmp edi, dword [esp + 0x24]
jg 0x554b9d
mov edi, dword [esp + 0x1c]
mov edx, dword [edx + 0x58]
add esi, eax
mov eax, ecx
add esi, edi
mov edi, dword [ebx + edx + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x554ba5
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x54]
cmp ecx, 0xffffffff
je 0x554bbf
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
inc edx
add eax, 4
mov dword [esp + 0x10], edx
mov ebp, dword [ebp + 0x5c]
cmp ebp, 0xffffffff
je 0x554bd5
mov edx, dword [esp + 0x10]
mov dword [eax], ebp
inc edx
add eax, 4
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x554b00
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00643cfc
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x554c0e
mov edx, dword [esp + 0x14]
pop edi
or eax, 0xffffffff
pop esi
pop ebp
mov word [edx + 0x5c], ax
pop ebx
add esp, 0x98
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov word [eax + 0x5c], 0
xor eax, eax
pop ebx
add esp, 0x98
ret 8
lea edx, [ebp + 4]
mov ecx, 0x15
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x5e]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push 0x6bc268
mov ecx, ebp
call fcn.00554fb0
pop edi
mov word [ebp + 0x5c], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x98
ret 8