Function at 0x50dde0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.0045d240
mov esi, dword [ebp + 0xc]
mov edi, 0x1da
add esp, 4
mov word [esi], ax
cmp ax, di
je 0x50de1a
push eax
call fcn.0045c6a0
add esp, 4
cmp ax, di
je 0x50de1a
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret
push ebx
call fcn.0045d240
push ebx
mov word [esi + 2], ax
call fcn.0045d240
push ebx
mov word [esi + 4], ax
call fcn.0045d240
push ebx
mov word [esi + 6], ax
call fcn.0045d240
push ebx
mov word [esi + 8], ax
call fcn.0045d240
push ebx
mov word [esi + 0xa], ax
call fcn.0045d070
push ebx
mov dword [esi + 0xc], eax
call fcn.0045d070
push ebx
mov dword [esi + 0x10], eax
call fcn.0045d070
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push dword [ebx]
push 1
push 0x50
push eax
call fcn.00595b79
add esp, 0x30
cmp eax, 1
jne 0x50de10
push ebx
call fcn.0045d070
push ebx
mov dword [esi + 0x68], eax
call fcn.0045d070
push ebx
call fcn.0045d240
push ebx
call fcn.0045d240
push ebx
mov word [esi + 0x72], ax
call fcn.0045d240
push ebx
mov word [esi + 0x74], ax
call fcn.0045d240
push ebx
mov word [esi + 0x76], ax
call fcn.0045d240
push ebx
mov word [esi + 0x78], ax
call fcn.0045d240
push ebx
call fcn.0045d070
push ebx
call fcn.0045d070
push ebx
call fcn.0045d070
push ebx
call fcn.0045d070
push ebx
mov dword [esi + 0x88], eax
call fcn.0045d070
push ebx
call fcn.0045d070
push ebx
call fcn.0045d070
push dword [ebx]
lea eax, [esi + 0x98]
push 1
push 0x168
push eax
call fcn.00595b79
add esp, 0x4c
cmp eax, 1
jne 0x50de10
xor eax, eax
mov dword [esi + 0x90], 0
mov word [esi + 0x7a], ax
movzx eax, word [esi]
push eax
mov dword [esi + 0x94], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
call fcn.0045c6a0
add esp, 4
mov ecx, 1
cmp ax, di
jne 0x50e023
movzx eax, word [esi]
push eax
mov word [esi + 0x72], cx
call fcn.0045c6a0
mov word [esi], ax
movzx eax, word [esi + 2]
push eax
call fcn.0045c6a0
mov word [esi + 2], ax
movzx eax, word [esi + 4]
push eax
call fcn.0045c6a0
mov word [esi + 4], ax
movzx eax, word [esi + 6]
push eax
call fcn.0045c6a0
mov word [esi + 6], ax
movzx eax, word [esi + 8]
push eax
call fcn.0045c6a0
mov word [esi + 8], ax
movzx eax, word [esi + 0xa]
push eax
call fcn.0045c6a0
push dword [esi + 0xc]
mov word [esi + 0xa], ax
call fcn.0045c670
push dword [esi + 0x10]
mov dword [esi + 0xc], eax
call fcn.0045c670
push dword [esi + 0x14]
mov dword [esi + 0x10], eax
call fcn.0045c670
push dword [esi + 0x68]
mov dword [esi + 0x14], eax
call fcn.0045c670
mov dword [esi + 0x68], eax
movzx eax, word [esi + 0x74]
push eax
call fcn.0045c6a0
mov word [esi + 0x74], ax
movzx eax, word [esi + 0x76]
push eax
call fcn.0045c6a0
mov word [esi + 0x76], ax
movzx eax, word [esi + 0x78]
push eax
call fcn.0045c6a0
push dword [esi + 0x88]
mov word [esi + 0x78], ax
call fcn.0045c670
add esp, 0x38
mov dword [esi + 0x88], eax
jmp 0x50e029
xor eax, eax
mov word [esi + 0x72], ax
mov ax, word [esi + 2]
mov ecx, 0xff00
and ax, cx
mov ecx, 0x100
cmp ax, cx
jne 0x50e113
movzx eax, word [esi + 0xa]
movzx ecx, word [esi + 8]
imul ecx, eax
push 4
push ecx
mov dword [ebp + 0xc], ecx
call fcn.00592c0b
push 4
push dword [ebp + 0xc]
mov edi, eax
mov dword [esi + 0x90], edi
call fcn.00592c0b
add esp, 0x10
mov dword [esi + 0x94], eax
test edi, edi
je 0x50e153
test eax, eax
je 0x50e153
mov ecx, dword [ebp + 0xc]
xor edi, edi
lea eax, [ecx*8 + 0x200]
mov dword [esi + 0x8c], eax
test ecx, ecx
jle 0x50e0da
lea ebx, [ebx]
push dword [ebx]
call fcn.00595867
add esp, 4
test eax, eax
jne 0x50e0d7
push ebx
cmp word [esi + 0x72], ax
je 0x50e0bc
call fcn.0045d030
jmp 0x50e0c1
call fcn.0045d070
mov ecx, dword [esi + 0x90]
add esp, 4
mov dword [ecx + edi*4], eax
inc edi
mov ecx, dword [ebp + 0xc]
cmp edi, ecx
jl 0x50e0a0
jmp 0x50e0da
mov ecx, dword [ebp + 0xc]
xor edi, edi
test ecx, ecx
jle 0x50e113
push dword [ebx]
call fcn.00595867
add esp, 4
test eax, eax
jne 0x50e113
push ebx
cmp word [esi + 0x72], ax
je 0x50e0fc
call fcn.0045d030
jmp 0x50e101
call fcn.0045d070
mov ecx, dword [esi + 0x94]
add esp, 4
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [ebp + 0xc]
jl 0x50e0e0
movzx eax, word [esi + 6]
mov ecx, eax
shr ecx, 6
add ecx, eax
shl ecx, 2
push ecx
call fcn.00593e38
add esp, 4
mov dword [esi + 0x84], eax
test eax, eax
je 0x50e153
xor eax, eax
mov dword [esi + 0x76], eax
mov word [esi + 0x74], ax
push dword [ebx]
call fcn.00595867
add esp, 4
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret