Function at 0x49bc50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x112e0
call fcn.005cef50
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x2d90
push 0
push 0x9d0bf8
call fcn.005cbc50
add esp, 0xc
push 0xb640
push 0
push 0xbffee0
call fcn.005cbc50
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x9cf788]
push ecx
mov edx, dword [0xc199ac]
push edx
lea eax, [ebp - 0x112c0]
push eax
call fcn.00494d10
add esp, 0x10
push 0x5ecb1c
lea ecx, [ebp - 0x112c0]
push ecx
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0x5b3c], eax
cmp dword [ebp - 0x5b3c], 0
jne 0x49bcda
xor eax, eax
jmp 0x49c637
push 0x5b20
push 0
lea edx, [ebp - 0x111b8]
push edx
call fcn.005cbc50
add esp, 0xc
push 0x5b20
push 0
lea eax, [ebp - 0x5b28]
push eax
call fcn.005cbc50
add esp, 0xc
push 0x5b20
push 0
lea ecx, [ebp - 0xb690]
push ecx
call fcn.005cbc50
add esp, 0xc
push 0
push 0xc
mov edx, dword [ebp - 0x5b3c]
push edx
call fcn.005cdc9c
add esp, 0xc
mov eax, dword [ebp - 0x5b3c]
push eax
push 1
push 4
lea ecx, [ebp - 0x5b6c]
push ecx
call fcn.005cdfc1
add esp, 0x10
mov edx, dword [ebp - 0x5b3c]
push edx
push 1
push 4
lea eax, [ebp - 0x5b48]
push eax
call fcn.005cdfc1
add esp, 0x10
movsx ecx, word [0x608130]
mov eax, dword [ecx*8 + str.kk66ee]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp + 0xc]
sub edx, eax
mov dword [ebp - 0xb694], edx
movsx eax, word [0x608130]
mov eax, dword [eax*8 + 0x608138]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov dword [ebp - 0x5b44], ecx
movsx edx, word [0x608130]
mov eax, dword [ebp - 0xb694]
add eax, dword [edx*8 + str.kk66ee]
mov dword [ebp - 0x5b30], eax
movsx ecx, word [0x608130]
mov edx, dword [ebp - 0x5b44]
add edx, dword [ecx*8 + 0x608138]
mov dword [ebp - 0x5b2c], edx
mov eax, dword [ebp - 0x5b30]
sub eax, dword [ebp - 0xb694]
mov dword [ebp - 0x5b4c], eax
mov ecx, dword [ebp - 0x5b4c]
mov dword [ebp - 0x5b68], ecx
mov edx, dword [ebp - 0x5b2c]
sub edx, dword [ebp - 0x5b44]
mov dword [ebp - 0x5b64], edx
mov dword [ebp - 0x5b5c], 0
mov eax, dword [ebp - 0xb694]
mov dword [ebp - 0x5b38], eax
cmp dword [ebp - 0xb694], 0
jge 0x49be50
mov ecx, dword [ebp - 0x5b68]
add ecx, dword [ebp - 0xb694]
mov dword [ebp - 0x5b68], ecx
mov dword [ebp - 0x5b38], 0
mov edx, dword [ebp - 0x5b5c]
sub edx, dword [ebp - 0xb694]
mov dword [ebp - 0x5b5c], edx
mov eax, dword [ebp - 0x5b30]
cmp eax, dword [ebp - 0x5b6c]
jle 0x49be78
mov ecx, dword [ebp - 0x5b30]
sub ecx, dword [ebp - 0x5b6c]
mov edx, dword [ebp - 0x5b68]
sub edx, ecx
mov dword [ebp - 0x5b68], edx
mov dword [ebp - 0x5b58], 0
mov eax, dword [ebp - 0x5b44]
mov dword [ebp - 0xb698], eax
cmp dword [ebp - 0x5b44], 0
jge 0x49bec5
mov ecx, dword [ebp - 0x5b64]
add ecx, dword [ebp - 0x5b44]
mov dword [ebp - 0x5b64], ecx
mov dword [ebp - 0xb698], 0
mov edx, dword [ebp - 0x5b58]
sub edx, dword [ebp - 0x5b44]
mov dword [ebp - 0x5b58], edx
mov eax, dword [ebp - 0x5b2c]
cmp eax, dword [ebp - 0x5b48]
jle 0x49beed
mov ecx, dword [ebp - 0x5b2c]
sub ecx, dword [ebp - 0x5b48]
mov edx, dword [ebp - 0x5b64]
sub edx, ecx
mov dword [ebp - 0x5b64], edx
mov dword [ebp - 4], 0x14
mov eax, dword [ebp - 0xb698]
imul eax, dword [ebp - 0x5b6c]
add eax, dword [ebp - 0x5b38]
mov dword [ebp - 0x5b54], eax
mov ecx, dword [ebp - 0x5b58]
imul ecx, dword [ebp - 0x5b4c]
add ecx, dword [ebp - 0x5b5c]
mov dword [ebp - 0x5b60], ecx
mov dword [ebp - 0x5b34], 0
jmp 0x49bf41
mov edx, dword [ebp - 0x5b34]
add edx, 1
mov dword [ebp - 0x5b34], edx
mov eax, dword [ebp - 0x5b34]
cmp eax, dword [ebp - 0x5b64]
jge 0x49bfbe
push 0
mov ecx, dword [ebp - 0x5b54]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2]
push eax
mov ecx, dword [ebp - 0x5b3c]
push ecx
call fcn.005cdc9c
add esp, 0xc
mov edx, dword [ebp - 0x5b3c]
push edx
push 1
mov eax, dword [ebp - 0x5b68]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x5b60]
lea edx, [ebp + ecx*2 - 0x111b8]
push edx
call fcn.005cdfc1
add esp, 0x10
mov eax, dword [ebp - 0x5b54]
add eax, dword [ebp - 0x5b6c]
mov dword [ebp - 0x5b54], eax
mov ecx, dword [ebp - 0x5b60]
add ecx, dword [ebp - 0x5b4c]
mov dword [ebp - 0x5b60], ecx
jmp 0x49bf32
mov edx, dword [ebp - 0x5b6c]
imul edx, dword [ebp - 0x5b48]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xb698]
imul edx, dword [ebp - 0x5b6c]
add edx, dword [ebp - 0x5b38]
mov dword [ebp - 0x5b54], edx
mov eax, dword [ebp - 0x5b58]
imul eax, dword [ebp - 0x5b4c]
add eax, dword [ebp - 0x5b5c]
mov dword [ebp - 0x5b60], eax
mov dword [ebp - 0x5b34], 0
jmp 0x49c021
mov ecx, dword [ebp - 0x5b34]
add ecx, 1
mov dword [ebp - 0x5b34], ecx
mov edx, dword [ebp - 0x5b34]
cmp edx, dword [ebp - 0x5b64]
jge 0x49c09e
push 0
mov eax, dword [ebp - 0x5b54]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp - 0x5b3c]
push eax
call fcn.005cdc9c
add esp, 0xc
mov ecx, dword [ebp - 0x5b3c]
push ecx
push 1
mov edx, dword [ebp - 0x5b68]
shl edx, 1
push edx
mov eax, dword [ebp - 0x5b60]
lea ecx, [ebp + eax*2 - 0x5b28]
push ecx
call fcn.005cdfc1
add esp, 0x10
mov edx, dword [ebp - 0x5b54]
add edx, dword [ebp - 0x5b6c]
mov dword [ebp - 0x5b54], edx
mov eax, dword [ebp - 0x5b60]
add eax, dword [ebp - 0x5b4c]
mov dword [ebp - 0x5b60], eax
jmp 0x49c012
mov ecx, dword [ebp - 0x5b6c]
imul ecx, dword [ebp - 0x5b48]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xb698]
imul ecx, dword [ebp - 0x5b6c]
add ecx, dword [ebp - 0x5b38]
mov dword [ebp - 0x5b54], ecx
mov edx, dword [ebp - 0x5b58]
imul edx, dword [ebp - 0x5b4c]
add edx, dword [ebp - 0x5b5c]
mov dword [ebp - 0x5b60], edx
mov dword [ebp - 0x5b34], 0
jmp 0x49c101
mov eax, dword [ebp - 0x5b34]
add eax, 1
mov dword [ebp - 0x5b34], eax
mov ecx, dword [ebp - 0x5b34]
cmp ecx, dword [ebp - 0x5b64]
jge 0x49c17e
push 0
mov edx, dword [ebp - 0x5b54]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
push ecx
mov edx, dword [ebp - 0x5b3c]
push edx
call fcn.005cdc9c
add esp, 0xc
mov eax, dword [ebp - 0x5b3c]
push eax
push 1
mov ecx, dword [ebp - 0x5b68]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x5b60]
lea eax, [ebp + edx*2 - 0xb690]
push eax
call fcn.005cdfc1
add esp, 0x10
mov ecx, dword [ebp - 0x5b54]
add ecx, dword [ebp - 0x5b6c]
mov dword [ebp - 0x5b54], ecx
mov edx, dword [ebp - 0x5b60]
add edx, dword [ebp - 0x5b4c]
mov dword [ebp - 0x5b60], edx
jmp 0x49c0f2
mov eax, dword [ebp - 0x5b3c]
push eax
call fcn.005cd459
add esp, 4
cmp dword [0x9d4df8], 1
jne 0x49c312
mov dword [ebp - 0x5b34], 0
jmp 0x49c1b5
mov ecx, dword [ebp - 0x5b34]
add ecx, 1
mov dword [ebp - 0x5b34], ecx
movsx edx, word [0x608130]
mov eax, dword [ebp - 0x5b34]
cmp eax, dword [edx*8 + 0x608138]
jge 0x49c30d
mov dword [ebp - 0x112c8], 0
jmp 0x49c1ea
mov ecx, dword [ebp - 0x112c8]
add ecx, 1
mov dword [ebp - 0x112c8], ecx
movsx edx, word [0x608130]
mov eax, dword [ebp - 0x112c8]
cmp eax, dword [edx*8 + str.kk66ee]
jge 0x49c308
movsx ecx, word [0x608130]
mov edx, dword [ebp - 0x5b34]
imul edx, dword [ecx*8 + str.kk66ee]
add edx, dword [ebp - 0x112c8]
movzx eax, word [ebp + edx*2 - 0xb690]
and eax, 0x4000
je 0x49c303
mov ecx, dword [ebp - 0x5b44]
add ecx, dword [ebp - 0x5b34]
imul ecx, dword [ebp - 0x5b6c]
mov edx, dword [ebp - 0xb694]
add edx, dword [ebp - 0x112c8]
add ecx, edx
imul ecx, ecx, 3
mov al, byte [ecx + 0xc34f80]
mov byte [ebp - 0x112c1], al
mov ecx, dword [ebp - 0x5b44]
add ecx, dword [ebp - 0x5b34]
imul ecx, dword [ebp - 0x5b6c]
mov edx, dword [ebp - 0xb694]
add edx, dword [ebp - 0x112c8]
add ecx, edx
imul ecx, ecx, 3
mov al, byte [ecx + 0xc34f81]
mov byte [ebp - 0x5b4d], al
mov ecx, dword [ebp - 0x5b44]
add ecx, dword [ebp - 0x5b34]
imul ecx, dword [ebp - 0x5b6c]
mov edx, dword [ebp - 0xb694]
add edx, dword [ebp - 0x112c8]
add ecx, edx
imul ecx, ecx, 3
mov al, byte [ecx + 0xc34f82]
mov byte [ebp - 0x111b9], al
movzx ecx, byte [ebp - 0x112c1]
shl ecx, 0x10
movzx edx, byte [ebp - 0x5b4d]
shl edx, 8
add ecx, edx
movzx eax, byte [ebp - 0x111b9]
add ecx, eax
movsx edx, word [0x608130]
mov eax, dword [ebp - 0x5b34]
imul eax, dword [edx*8 + str.kk66ee]
add eax, dword [ebp - 0x112c8]
mov dword [eax*4 + 0xbffee0], ecx
jmp 0x49c1db
jmp 0x49c1a6
jmp 0x49c632
mov dword [ebp - 0x5b34], 0
jmp 0x49c32d
mov ecx, dword [ebp - 0x5b34]
add ecx, 1
mov dword [ebp - 0x5b34], ecx
movsx edx, word [0x608130]
mov eax, dword [ebp - 0x5b34]
cmp eax, dword [edx*8 + 0x608138]
jge 0x49c3f7
mov dword [ebp - 0x112c8], 0
jmp 0x49c362
mov ecx, dword [ebp - 0x112c8]
add ecx, 1
mov dword [ebp - 0x112c8], ecx
movsx edx, word [0x608130]
mov eax, dword [ebp - 0x112c8]
cmp eax, dword [edx*8 + str.kk66ee]
jge 0x49c3f2
movsx ecx, word [0x608130]
mov edx, dword [ebp - 0x5b34]
imul edx, dword [ecx*8 + str.kk66ee]
add edx, dword [ebp - 0x112c8]
movzx eax, word [ebp + edx*2 - 0xb690]
and eax, 0x4000
je 0x49c3ed
movsx ecx, word [0x608130]
mov edx, dword [ebp - 0x5b34]
imul edx, dword [ecx*8 + str.kk66ee]
add edx, dword [ebp - 0x112c8]
movzx eax, word [ebp + edx*2 - 0x111b8]
movsx ecx, word [0x608130]
mov edx, dword [ebp - 0x5b34]
imul edx, dword [ecx*8 + str.kk66ee]
mov ecx, dword [ebp - 0x112c8]
mov al, byte [eax + 0x7d3768]
mov byte [edx + ecx + 0x9d0bf8], al
jmp 0x49c353
jmp 0x49c31e
mov dword [ebp - 0x5b34], 0
jmp 0x49c412
mov ecx, dword [ebp - 0x5b34]
add ecx, 1
mov dword [ebp - 0x5b34], ecx
movsx edx, word [0x608130]
mov eax, dword [ebp - 0x5b34]
cmp eax, dword [edx*8 + 0x608138]
jge 0x49c632
mov dword [ebp - 0x112c8], 0
jmp 0x49c447
mov ecx, dword [ebp - 0x112c8]
add ecx, 1
mov dword [ebp - 0x112c8], ecx
movsx edx, word [0x608130]
mov eax, dword [ebp - 0x112c8]
cmp eax, dword [edx*8 + str.kk66ee]
jge 0x49c62d
movsx ecx, word [0x608130]
mov edx, dword [ebp - 0x5b34]
imul edx, dword [ecx*8 + str.kk66ee]
add edx, dword [ebp - 0x112c8]
movzx eax, word [ebp + edx*2 - 0xb690]
and eax, 0x4000
je 0x49c628
movsx ecx, word [0x608130]
mov edx, dword [ebp - 0x5b34]
imul edx, dword [ecx*8 + str.kk66ee]
add edx, dword [ebp - 0x112c8]
movzx eax, word [ebp + edx*2 - 0x5b28]
movzx ecx, byte [eax + 0x7d3768]
mov dword [ebp - 0x5b40], ecx
cmp dword [ebp - 0x5b40], 0
je 0x49c628
lea edx, [ebp - 0x112cc]
push edx
movsx eax, word [0x608130]
mov ecx, dword [ebp - 0x5b34]
imul ecx, dword [eax*8 + str.kk66ee]
add ecx, dword [ebp - 0x112c8]
movzx edx, word [ebp + ecx*2 - 0x5b28]
push edx
call fcn.0047dc90
add esp, 8
lea eax, [ebp - 0x112d4]
push eax
mov ecx, dword [ebp - 0x112cc]
push ecx
call fcn.0047dbf0
add esp, 8
movsx edx, word [ebp - 0x112d4]
test edx, edx
jne 0x49c600
lea eax, [ebp - 0x112d0]
push eax
lea ecx, [ebp - 0x112e0]
push ecx
mov edx, dword [ebp - 0x112cc]
push edx
call fcn.0047db90
add esp, 0xc
mov dword [ebp - 0x112d8], 0
jmp 0x49c55c
mov eax, dword [ebp - 0x112d8]
add eax, 1
mov dword [ebp - 0x112d8], eax
movsx ecx, word [ebp - 0x112d0]
cmp dword [ebp - 0x112d8], ecx
jge 0x49c5fe
mov dword [ebp - 0x112dc], 0
jmp 0x49c58a
mov edx, dword [ebp - 0x112dc]
add edx, 1
mov dword [ebp - 0x112dc], edx
movsx eax, word [ebp - 0x112e0]
cmp dword [ebp - 0x112dc], eax
jge 0x49c5f9
mov ecx, dword [ebp - 0x5b34]
sub ecx, dword [ebp - 0x112d8]
js 0x49c5f7
mov edx, dword [ebp - 0x112c8]
add edx, dword [ebp - 0x112dc]
movsx eax, word [0x608130]
cmp edx, dword [eax*8 + str.kk66ee]
jge 0x49c5f7
mov ecx, dword [ebp - 0x5b34]
sub ecx, dword [ebp - 0x112d8]
movsx edx, word [0x608130]
imul ecx, dword [edx*8 + str.kk66ee]
add ecx, dword [ebp - 0x112c8]
mov eax, dword [ebp - 0x112dc]
mov dl, byte [ebp - 0x5b40]
mov byte [ecx + eax + 0x9d0bf8], dl
jmp 0x49c57b
jmp 0x49c54d
jmp 0x49c628
movsx eax, word [0x608130]
mov ecx, dword [ebp - 0x5b34]
imul ecx, dword [eax*8 + str.kk66ee]
mov edx, dword [ebp - 0x112c8]
mov al, byte [ebp - 0x5b40]
mov byte [ecx + edx + 0x9d0bf8], al
jmp 0x49c438
jmp 0x49c403
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret