Function at 0x44a390
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push ebx
push esi
push edi
test ecx, ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0
je 0x44a42d
cmp byte [ecx], 0
je 0x44a42d
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x44a436
push 0x8000
push ecx
call fcn.00614875
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x44a48b
push 2
push 0
push esi
call fcn.00614b56
push esi
call fcn.00614b45
mov ebx, eax
push ebx
call fcn.006137fc
mov edi, eax
add esp, 0x14
test edi, edi
mov dword [esp + 0x20], edi
je 0x44a417
push 0
push 0
push esi
call fcn.00614b56
push ebx
push edi
push esi
call fcn.0061467f
add esp, 0x18
mov dword [esp + 0xc], 1
push esi
call fcn.006145cc
add esp, 4
test edi, edi
jne 0x44a498
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x44a48b
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push 0x62696e61
call fcn.004c5530
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
jne 0x44a481
mov eax, dword [esp + 0x14]
push eax
call fcn.006137fc
mov ecx, dword [esp + 0x18]
mov edi, eax
push ecx
push esi
push edi
mov dword [esp + 0x30], edi
call fcn.00614ea0
add esp, 0x10
mov dword [esp + 0xc], 1
jmp 0x44a487
mov dword [esp + 0x20], esi
mov edi, esi
test edi, edi
jne 0x44a494
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
mov dx, word [0x66f4d8]
mov al, byte [0x66f4da]
lea ecx, [esp + 0x24]
push ebp
push ecx
push edi
mov word [esp + 0x30], dx
mov byte [esp + 0x32], al
call fcn.006151d5
add esp, 8
test eax, eax
je 0x44a654
lea edx, [esp + 0x28]
push edx
push 0
call fcn.006151d5
add esp, 8
test eax, eax
je 0x44a654
lea eax, [esp + 0x28]
push eax
push 0
call fcn.006151d5
add esp, 8
test eax, eax
je 0x44a654
push eax
call fcn.00613870
mov ebp, eax
lea ecx, [ebp*4 + 8]
push ecx
call fcn.006137fc
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x1c], 0
je 0x44a654
xor ebx, ebx
mov word [esi + 2], bp
test ebp, ebp
mov word [esi], 0x300
jle 0x44a64b
lea edi, [esi + 5]
lea edx, [esp + 0x28]
push edx
push 0
call fcn.006151d5
add esp, 8
test eax, eax
je 0x44a5a3
push eax
call fcn.006138fb
mov byte [edi - 1], al
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.006151d5
add esp, 0xc
test eax, eax
je 0x44a5a3
push eax
call fcn.006138fb
lea ecx, [esp + 0x2c]
mov byte [edi], al
push ecx
push 0
call fcn.006151d5
add esp, 0xc
test eax, eax
je 0x44a5a3
push eax
call fcn.006138fb
lea edx, [ebp - 1]
add esp, 4
mov byte [edi + 1], al
cmp ebx, edx
mov byte [edi + 2], 0
jne 0x44a59b
mov dword [esp + 0x1c], 1
inc ebx
add edi, 4
cmp ebx, ebp
jl 0x44a532
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x44a647
mov edi, dword [esp + 0x2c]
cmp ebp, 0x100
jne 0x44a617
test edi, edi
je 0x44a5f3
mov eax, dword [0x66f430]
test eax, eax
jl 0x44a617
mov ecx, 0x66f435
mov dl, byte [ecx - 1]
add ecx, 8
mov byte [esi + eax*4 + 4], dl
mov dl, byte [ecx - 8]
mov byte [esi + eax*4 + 5], dl
mov dl, byte [ecx - 7]
mov byte [esi + eax*4 + 6], dl
mov byte [esi + eax*4 + 7], 0
mov eax, dword [ecx - 5]
test eax, eax
jge 0x44a5cd
jmp 0x44a617
mov al, 0xff
mov byte [esi + 4], 0
mov byte [esi + 5], 0
mov byte [esi + 6], 0
mov byte [esi + 0x400], al
mov byte [esi + 0x401], al
mov byte [esi + 0x402], al
mov byte [esi + 7], 0
push esi
call dword [sym.imp.GDI32.dll_CreatePalette]
test edi, edi
mov dword [esp + 0x14], eax
je 0x44a647
mov eax, dword [0x6833d0]
mov eax, dword [eax + 0x6c]
cmp byte [eax + 0x3c], 1
je 0x44a63a
cmp byte [eax + 0x3d], 1
jne 0x44a647
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0044aef0
add esp, 4
mov edi, dword [esp + 0x24]
push esi
call fcn.00613327
add esp, 4
test edi, edi
pop ebp
je 0x44a669
cmp dword [esp + 0xc], 1
jne 0x44a669
push edi
call fcn.00613327
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x10
ret