Function at 0x4491d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x511e30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54a050]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebx, dword [0x6fbf40]
mov dword [esp + 0x28], ebx
call fcn.004a7b93
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x44921d
push 0x80004005
call fcn.00401710
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x44], esi
call fcn.004a7b93
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x44924b
push 0x80004005
call fcn.00401710
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
cmp ebx, esi
mov byte [esp + 0x44], 1
jle 0x449280
mov eax, 0x72a0f4
mov edx, ebx
jmp 0x449270
mov ecx, dword [eax]
cmp ecx, esi
jbe 0x449278
mov esi, ecx
add eax, 0x2c
sub edx, 1
jne 0x449270
push esi
call fcn.004d5f80
push esi
mov dword [esp + 0x24], eax
call fcn.004d5f80
mov dword [esp + 0x34], eax
mov eax, dword [0x6fbf34]
xor ecx, ecx
mov edx, 0x34
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a210b
mov esi, eax
mov eax, dword [0x6fbf34]
imul eax, eax, 0x34
push eax
push 0x70e1ec
push esi
mov dword [esp + 0x30], esi
call fcn.004de7f0
lea eax, [ebx - 1]
add esp, 0x18
test eax, eax
jle 0x449545
mov ebp, 0x72a0f4
mov edi, 1
mov dword [esp + 0x14], ebp
cmp dword [ebp - 0x28], 0
je 0x449525
lea ecx, [edi - 1]
push ecx
lea edx, [esp + 0x28]
push str.TEXTEX_d.BMP
push edx
call fcn.004018d0
mov eax, dword [esp + 0x30]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x34]
push ecx
mov esi, eax
mov eax, dword [esp + 0x24]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
mov ebp, edi
jge 0x449525
lea esp, [esp]
mov ebx, ebp
imul ebx, ebx, 0x2c
add ebx, 0x72a0cc
cmp dword [ebx], 0
mov dword [esp + 0x38], ebx
je 0x449514
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
cmp edx, dword [ebx + 0x28]
jne 0x449514
push ebp
lea eax, [esp + 0x24]
push str.TEXTEX_d.BMP
push eax
call fcn.004018d0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
mov eax, dword [ebx + 0x28]
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0x34]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp eax, 4
mov edx, dword [esp + 0x1c]
mov ecx, ebx
jb 0x4493ec
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4493f0
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4493d8
test eax, eax
je 0x44944d
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x44943f
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44944d
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x44943f
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44944d
movzx ebx, byte [ecx]
movzx esi, byte [edx]
sub esi, ebx
jne 0x44943f
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x44944d
movzx eax, byte [ecx]
movzx esi, byte [edx]
sub esi, eax
je 0x44944d
test esi, esi
mov eax, 1
jg 0x44944f
or eax, 0xffffffff
jmp 0x44944f
xor eax, eax
test eax, eax
jne 0x449514
xor esi, esi
cmp dword [0x6fbf34], esi
jle 0x44950a
mov ecx, dword [esp + 0x18]
mov edx, 0x70e1d0
add ecx, 0x1c
sub edx, dword [esp + 0x18]
mov eax, 0x70e208
mov dword [esp + 0x34], edx
jmp 0x449484
mov edx, dword [esp + 0x34]
mov edx, dword [edx + ecx]
sub edx, 1
je 0x4494d8
sub edx, 1
je 0x4494b8
sub edx, 4
jne 0x4494f5
mov edx, dword [eax - 4]
test edx, edx
je 0x4494f5
test edx, 0xff00
jne 0x4494f5
lea ebx, [ebp + 1]
cmp edx, ebx
jne 0x4494f5
mov dword [ecx - 4], edi
mov dword [eax - 4], 0xffffffff
jmp 0x4494f5
mov edx, dword [eax - 4]
test edx, edx
je 0x4494d8
test edx, 0xff00
jne 0x4494d8
lea ebx, [ebp + 1]
cmp edx, ebx
jne 0x4494d8
mov dword [ecx - 4], edi
mov dword [eax - 4], 0xffffffff
mov edx, dword [eax]
test edx, edx
je 0x4494f5
test edx, 0xff00
jne 0x4494f5
lea ebx, [ebp + 1]
cmp edx, ebx
jne 0x4494f5
mov dword [ecx], edi
mov dword [eax], 0xffffffff
add esi, 1
add eax, 0x34
add ecx, 0x34
cmp esi, dword [0x6fbf34]
jl 0x449480
mov ecx, dword [esp + 0x38]
mov dword [ecx], 0
add ebp, 1
cmp ebp, dword [esp + 0x28]
jl 0x449350
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x14]
add edi, 1
add ebp, 0x2c
lea edx, [edi - 1]
lea eax, [ebx - 1]
cmp edx, eax
mov dword [esp + 0x14], ebp
jl 0x4492e5
mov esi, dword [esp + 0x18]
mov eax, dword [0x6fbf34]
imul eax, eax, 0x34
push eax
push esi
push 0x70e1ec
call fcn.004de7f0
push esi
call fcn.004a2106
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004d6cd0
mov edx, dword [esp + 0x30]
push edx
call fcn.004d6cd0
push 0
push 0x54ef98
call fcn.0043b980
mov byte [esp + 0x64], 0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4495a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4495cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret