Function at 0x620120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x62041e
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x62041d
push esi
push ebp
call fcn.0061ff50
add esp, 8
test byte [esi + 8], 8
je 0x620328
movzx eax, word [esi + 0x14]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push ebp
call fcn.006267c0
add esp, 0xc
test byte [esi + 8], 0x10
je 0x6201b0
test dword [ebp + 0x74], 0x80000
je 0x620195
cmp byte [esi + 0x19], 3
jne 0x620195
xor edx, edx
xor eax, eax
cmp dx, word [esi + 0x16]
jae 0x620195
nop
mov ecx, dword [esi + 0x50]
add ecx, eax
or dl, 0xff
sub dl, byte [ecx]
inc eax
mov byte [ecx], dl
movzx ecx, word [esi + 0x16]
cmp eax, ecx
jl 0x620180
movzx edx, byte [esi + 0x19]
movzx eax, word [esi + 0x16]
push edx
mov edx, dword [esi + 0x50]
push eax
lea ecx, [esi + 0x54]
push ecx
push edx
push ebp
call fcn.006284c0
add esp, 0x14
test byte [esi + 8], 0x20
je 0x6201c8
movzx eax, byte [esi + 0x19]
push eax
lea ecx, [esi + 0x5e]
push ecx
push ebp
call fcn.00628640
add esp, 0xc
test byte [esi + 8], 0x40
je 0x6201e3
movzx edx, word [esi + 0x14]
mov eax, dword [esi + 0x80]
push edx
push eax
push ebp
call fcn.00626900
add esp, 0xc
test dword [esi + 8], 0x100
je 0x620202
movzx ecx, byte [esi + 0x70]
mov edx, dword [esi + 0x6c]
mov eax, dword [esi + 0x68]
push ecx
push edx
push eax
push ebp
call fcn.006287f0
add esp, 0x10
test dword [esi + 8], 0x400
je 0x620247
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb0]
movzx eax, byte [esi + 0xb9]
push ecx
movzx ecx, byte [esi + 0xb8]
push edx
mov edx, dword [esi + 0xac]
push eax
mov eax, dword [esi + 0xa8]
push ecx
mov ecx, dword [esi + 0xa4]
push edx
push eax
push ecx
push ebp
call fcn.00627040
add esp, 0x20
test dword [esi + 8], 0x4000
je 0x62026f
mov edx, dword [esi + 0xe8]
mov eax, dword [esi + 0xe4]
movzx ecx, byte [esi + 0xe0]
push edx
push eax
push ecx
push ebp
call fcn.006288d0
add esp, 0x10
test byte [esi + 8], 0x80
je 0x62028b
movzx edx, byte [esi + 0x7c]
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x74]
push edx
push eax
push ecx
push ebp
call fcn.006289d0
add esp, 0x10
push edi
mov edi, 0x200
test dword [esi + 8], edi
je 0x6202a6
lea edx, [esi + 0x3c]
push edx
push ebp
call fcn.00628ab0
add esp, 8
or dword [ebp + 0x6c], edi
test dword [esi + 8], 0x2000
push ebx
je 0x6202de
xor edi, edi
cmp dword [esi + 0xdc], edi
jle 0x6202de
xor ebx, ebx
lea esp, [esp]
mov eax, dword [esi + 0xd8]
add eax, ebx
push eax
push ebp
call fcn.00627ff0
inc edi
add esp, 8
add ebx, 0x10
cmp edi, dword [esi + 0xdc]
jl 0x6202c0
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jle 0x62039c
xor edi, edi
jmp 0x6202f0
mov ecx, dword [esi + 0x38]
mov eax, dword [edi + ecx]
test eax, eax
jle 0x62033d
mov edx, ecx
mov ecx, dword [edi + edx + 8]
lea eax, [edi + edx]
mov edx, dword [eax + 0x18]
push ecx
mov ecx, dword [eax + 0x14]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push ebp
call fcn.00626e40
mov ecx, dword [esi + 0x38]
add esp, 0x18
mov dword [edi + ecx], 0xfffffffd
jmp 0x62038f
cmp byte [esi + 0x19], 3
jne 0x620160
push str.Valid_palette_required_for_paletted_images
push ebp
call fcn.00622000
jne 0x620367
mov edx, ecx
mov ecx, dword [edi + edx]
lea eax, [edi + edx]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
push 0
push edx
push eax
push ebp
call fcn.00626ce0
mov ecx, dword [esi + 0x38]
add esp, 0x14
mov dword [edi + ecx], 0xfffffffe
jmp 0x62038f
cmp eax, 0xffffffff
jne 0x62038f
mov edx, ecx
mov ecx, dword [edi + edx + 8]
lea eax, [edi + edx]
mov edx, dword [eax + 4]
push 0
push ecx
push edx
push ebp
call fcn.00626bf0
mov eax, dword [esi + 0x38]
add esp, 0x10
mov dword [edi + eax], 0xfffffffd
inc ebx
add edi, 0x1c
cmp ebx, dword [esi + 0x30]
jl 0x6202f0
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x62041b
mov edi, dword [esi + 0xc0]
lea ecx, [eax + eax*4]
lea edx, [edi + ecx*4]
cmp edi, edx
jae 0x62041b
mov ebx, 0x10000
jmp 0x6203c0
push edi
push ebp
call fcn.00619620
add esp, 8
cmp eax, 1
je 0x620402
mov cl, byte [edi + 0x10]
test cl, cl
je 0x620402
test cl, 2
je 0x620402
test cl, 4
jne 0x620402
test byte [edi + 3], 0x20
jne 0x6203f0
cmp eax, 3
je 0x6203f0
test dword [ebp + 0x70], ebx
je 0x620402
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
push eax
push ecx
push edi
push ebp
call fcn.006276e0
add esp, 0x10
mov eax, dword [esi + 0xc4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0xc0]
add edi, 0x14
lea ecx, [eax + edx*4]
cmp edi, ecx
jb 0x6203c0
pop ebx
pop edi
pop esi
pop ebp
ret