Function at 0x4462e0
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 0x44637d
cmp byte [ecx], 0
je 0x44637d
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x446386
push 0x8000
push ecx
call fcn.005fbe12
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x4463db
push 2
push 0
push esi
call fcn.005fc0f3
push esi
call fcn.005fc0e2
mov ebx, eax
push ebx
call fcn.005fb0a6
mov edi, eax
add esp, 0x14
test edi, edi
mov dword [esp + 0x20], edi
je 0x446367
push 0
push 0
push esi
call fcn.005fc0f3
push ebx
push edi
push esi
call fcn.005fbc1c
add esp, 0x18
mov dword [esp + 0xc], 1
push esi
call fcn.005fbb69
add esp, 4
test edi, edi
jne 0x4463e8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4463db
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push 0x62696e61
call fcn.004be960
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
jne 0x4463d1
mov eax, dword [esp + 0x14]
push eax
call fcn.005fb0a6
mov ecx, dword [esp + 0x18]
mov edi, eax
push ecx
push esi
push edi
mov dword [esp + 0x30], edi
call fcn.005fc540
add esp, 0x10
mov dword [esp + 0xc], 1
jmp 0x4463d7
mov dword [esp + 0x20], esi
mov edi, esi
test edi, edi
jne 0x4463e4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
mov dx, word [0x651278]
mov al, byte [0x65127a]
lea ecx, [esp + 0x24]
push ebp
push ecx
push edi
mov word [esp + 0x30], dx
mov byte [esp + 0x32], al
call fcn.005fc875
add esp, 8
test eax, eax
je 0x4465a4
lea edx, [esp + 0x28]
push edx
push 0
call fcn.005fc875
add esp, 8
test eax, eax
je 0x4465a4
lea eax, [esp + 0x28]
push eax
push 0
call fcn.005fc875
add esp, 8
test eax, eax
je 0x4465a4
push eax
call fcn.005fb11a
mov ebp, eax
lea ecx, [ebp*4 + 8]
push ecx
call fcn.005fb0a6
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x1c], 0
je 0x4465a4
xor ebx, ebx
mov word [esi + 2], bp
test ebp, ebp
mov word [esi], 0x300
jle 0x44659b
lea edi, [esi + 5]
lea edx, [esp + 0x28]
push edx
push 0
call fcn.005fc875
add esp, 8
test eax, eax
je 0x4464f3
push eax
call fcn.005fb1a5
mov byte [edi - 1], al
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.005fc875
add esp, 0xc
test eax, eax
je 0x4464f3
push eax
call fcn.005fb1a5
lea ecx, [esp + 0x2c]
mov byte [edi], al
push ecx
push 0
call fcn.005fc875
add esp, 0xc
test eax, eax
je 0x4464f3
push eax
call fcn.005fb1a5
lea edx, [ebp - 1]
add esp, 4
mov byte [edi + 1], al
cmp ebx, edx
mov byte [edi + 2], 0
jne 0x4464eb
mov dword [esp + 0x1c], 1
inc ebx
add edi, 4
cmp ebx, ebp
jl 0x446482
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x446597
mov edi, dword [esp + 0x2c]
cmp ebp, 0x100
jne 0x446567
test edi, edi
je 0x446543
mov eax, dword [0x6511d0]
test eax, eax
jl 0x446567
mov ecx, 0x6511d5
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 0x44651d
jmp 0x446567
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 0x446597
mov eax, dword [0x6633d4]
mov eax, dword [eax + 0x6c]
cmp byte [eax + 0x3c], 1
je 0x44658a
cmp byte [eax + 0x3d], 1
jne 0x446597
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00446e40
add esp, 4
mov edi, dword [esp + 0x24]
push esi
call fcn.005fabe7
add esp, 4
test edi, edi
pop ebp
je 0x4465b9
cmp dword [esp + 0xc], 1
jne 0x4465b9
push edi
call fcn.005fabe7
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x10
ret