Function at 0x54a030
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
push edi
mov edi, eax
je 0x54a321
test edi, edi
je 0x54a321
push ebx
mov eax, ebp
call fcn.00549e50
test byte [edi + 8], 8
je 0x54a227
movzx ebx, word [edi + 0x14]
mov edx, dword [edi + 0x10]
mov ecx, ebp
call fcn.00560c50
test byte [edi + 8], 0x10
je 0x54a0b5
test dword [ebp + 0x74], 0x80000
je 0x54a09c
cmp byte [edi + 0x19], 3
jne 0x54a09c
xor eax, eax
cmp word [edi + 0x16], ax
jbe 0x54a09c
mov ecx, dword [edi + 0x50]
add ecx, eax
or dl, 0xff
sub dl, byte [ecx]
add eax, 1
mov byte [ecx], dl
movzx ecx, word [edi + 0x16]
cmp eax, ecx
jl 0x54a085
movzx eax, word [edi + 0x16]
movzx edx, byte [edi + 0x19]
push eax
mov eax, dword [edi + 0x50]
push eax
lea ecx, [edi + 0x54]
push ebp
call fcn.005617f0
add esp, 0xc
test byte [edi + 8], 0x20
je 0x54a0cd
movzx ecx, byte [edi + 0x19]
lea edx, [edi + 0x5e]
push edx
mov edx, ebp
call fcn.00561990
add esp, 4
test byte [edi + 8], 0x40
je 0x54a0e8
mov eax, dword [edi + 0x80]
movzx ebx, word [edi + 0x14]
push eax
mov ecx, ebp
call fcn.00561b60
add esp, 4
test dword [edi + 8], 0x100
je 0x54a107
movzx ecx, byte [edi + 0x70]
mov edx, dword [edi + 0x68]
mov ebx, dword [edi + 0x6c]
push ecx
push edx
mov ecx, ebp
call fcn.005623b0
add esp, 8
test dword [edi + 8], 0x400
je 0x54a14c
mov eax, dword [edi + 0xb4]
mov ecx, dword [edi + 0xb0]
movzx edx, byte [edi + 0xb9]
push eax
movzx eax, byte [edi + 0xb8]
push ecx
mov ecx, dword [edi + 0xac]
push edx
mov edx, dword [edi + 0xa8]
push eax
push ecx
push edx
mov edx, dword [edi + 0xa4]
mov ecx, ebp
call fcn.00562490
add esp, 0x18
test dword [edi + 8], 0x4000
je 0x54a173
movzx ecx, byte [edi + 0xe0]
mov eax, dword [edi + 0xe8]
push eax
push ecx
mov ecx, dword [edi + 0xe4]
push ebp
call fcn.00562890
add esp, 0xc
test byte [edi + 8], 0x80
je 0x54a18f
movzx edx, byte [edi + 0x7c]
mov eax, dword [edi + 0x74]
mov ebx, dword [edi + 0x78]
push edx
push eax
mov ecx, ebp
call fcn.00562960
add esp, 8
push esi
mov esi, 0x200
test dword [edi + 8], esi
je 0x54a1ab
lea ecx, [edi + 0x3c]
push ecx
mov ecx, ebp
call fcn.00562a40
add esp, 4
or dword [ebp + 0x6c], esi
test dword [edi + 8], 0x2000
je 0x54a1e1
xor esi, esi
cmp dword [edi + 0xdc], esi
jle 0x54a1e1
xor ebx, ebx
mov edx, dword [edi + 0xd8]
add edx, ebx
push edx
mov ecx, ebp
call fcn.005612d0
add esi, 1
add esp, 4
add ebx, 0x10
cmp esi, dword [edi + 0xdc]
jl 0x54a1c0
xor ebx, ebx
cmp dword [edi + 0x30], ebx
jle 0x54a29c
xor esi, esi
mov edi, edi
mov eax, dword [edi + 0x38]
mov eax, dword [esi + eax]
test eax, eax
jle 0x54a23d
mov ecx, dword [edi + 0x38]
mov edx, dword [esi + ecx + 8]
lea eax, [esi + ecx]
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax]
push ecx
mov ecx, dword [eax + 0x18]
push edx
mov edx, dword [eax + 4]
push ebp
call fcn.00562140
mov eax, dword [edi + 0x38]
add esp, 0x10
mov dword [esi + eax], 0xfffffffd
jmp 0x54a28d
cmp byte [edi + 0x19], 3
jne 0x54a068
mov edi, str.Valid_palette_required_for_paletted_images
mov eax, ebp
jmp fcn.0054c480
jne 0x54a266
mov ecx, dword [edi + 0x38]
mov edx, dword [esi + ecx]
lea eax, [esi + ecx]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
push ecx
mov ecx, ebp
call fcn.00561f90
mov edx, dword [edi + 0x38]
add esp, 8
mov dword [esi + edx], 0xfffffffe
jmp 0x54a28d
cmp eax, 0xffffffff
jne 0x54a28d
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + esi + 8]
mov edx, dword [eax + esi + 4]
add eax, esi
push ecx
mov ecx, ebp
call fcn.00561e80
mov edx, dword [edi + 0x38]
add esp, 4
mov dword [esi + edx], 0xfffffffd
add ebx, 1
add esi, 0x1c
cmp ebx, dword [edi + 0x30]
jl 0x54a1f0
mov eax, dword [edi + 0xc4]
test eax, eax
je 0x54a31f
mov esi, dword [edi + 0xc0]
lea eax, [eax + eax*4]
lea ecx, [esi + eax*4]
cmp esi, ecx
jae 0x54a31f
lea ebx, [ebx]
push esi
mov ecx, ebp
call fcn.0054b610
add esp, 4
cmp eax, 1
je 0x54a306
mov cl, byte [esi + 0x10]
test cl, cl
je 0x54a306
test cl, 2
je 0x54a306
test cl, 4
jne 0x54a306
test byte [esi + 3], 0x20
jne 0x54a2f5
cmp eax, 3
je 0x54a2f5
test dword [ebp + 0x70], 0x10000
je 0x54a306
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
push ebp
mov ecx, esi
call fcn.005601c0
add esp, 4
mov eax, dword [edi + 0xc4]
lea edx, [eax + eax*4]
mov eax, dword [edi + 0xc0]
add esi, 0x14
lea ecx, [eax + edx*4]
cmp esi, ecx
jb 0x54a2c0
pop esi
pop ebx
pop edi
pop ebp
ret