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

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ecx, ecx
xor esi, esi
mov ebx, edi
mov ebp, edi
cmp eax, 9
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], edi
ja case.default.0x1001ef74
jmp dword [eax*4 + 0x1001f718]
mov dword [esp + 0x40], 1
jmp 0x1001efb8
mov dword [esp + 0x40], 3
jmp 0x1001efb8
mov dword [esp + 0x40], 4
jmp 0x1001efb8
mov eax, dword [esp + 0x7c]
push 0
push eax
push 0xfffff376
push 0x21b
push str.C:_accusoftgearSOURCEIMG_PROCCOLORSPC.C
call fcn.10046940
mov esi, eax
xor ecx, ecx
cmp esi, ecx
jne 0x1001efdc
mov ecx, dword [esp + 0x6c]
push ecx
call sym.GEAR32PO.OCX_GPb_iIG_image_is_valid
test eax, eax
jne 0x1001efdc
mov edx, dword [esp + 0x6c]
push eax
push edx
push 0xfffff2fe
push 0x220
jmp 0x1001f047
mov eax, dword [esp + 0x6c]
push eax
call sym.GEAR32PO.OCX_GPb_width_get
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
push ecx
call sym.GEAR32PO.OCX_GPb_height_get
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
push edx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
cmp eax, 8
jne 0x1001f031
mov eax, dword [esp + 0x6c]
push eax
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10032ea0
test eax, eax
je 0x1001f031
mov ecx, dword [esp + 0x6c]
push ecx
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov edi, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], edi
jmp 0x1001f053
mov esi, dword [esp + 0x6c]
push esi
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
push eax
push esi
push 0xfffff448
push 0x227
push str.C:_accusoftgearSOURCEIMG_PROCCOLORSPC.C
call fcn.10046940
mov esi, eax
cmp dword [esp + 0x7c], 1
je 0x1001f1dc
test esi, esi
jne 0x1001f085
mov edx, dword [esp + 0x70]
push edx
call sym.GEAR32PO.OCX_GPb_iIG_image_is_valid
test eax, eax
jne 0x1001f085
push eax
mov eax, dword [esp + 0x74]
push eax
push 0xfffff2fe
push 0x231
jmp 0x1001f111
mov ecx, dword [esp + 0x70]
push ecx
call sym.GEAR32PO.OCX_GPb_width_get
mov edx, dword [esp + 0x70]
mov dword [esp + 0x38], eax
push edx
call sym.GEAR32PO.OCX_GPb_height_get
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jne 0x1001f100
cmp dword [esp + 0x34], eax
jne 0x1001f100
mov edx, dword [esp + 0x70]
push edx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
cmp eax, 8
jne 0x1001f0e8
mov eax, dword [esp + 0x70]
push eax
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10032ea0
test eax, eax
je 0x1001f0e8
mov ecx, dword [esp + 0x70]
push ecx
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov ebp, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x48], ebp
jmp 0x1001f11d
mov esi, dword [esp + 0x70]
push esi
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
push eax
push esi
push 0xfffff448
push 0x23c
jmp 0x1001f111
mov edx, dword [esp + 0x70]
push 0
push edx
push 0xfffff3ee
push 0x238
push str.C:_accusoftgearSOURCEIMG_PROCCOLORSPC.C
call fcn.10046940
mov esi, eax
test esi, esi
jne 0x1001f144
mov eax, dword [esp + 0x74]
push eax
call sym.GEAR32PO.OCX_GPb_iIG_image_is_valid
test eax, eax
jne 0x1001f144
mov ecx, dword [esp + 0x74]
push eax
push ecx
push 0xfffff2fe
push 0x245
jmp 0x1001f1d0
mov edx, dword [esp + 0x74]
push edx
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
push eax
call sym.GEAR32PO.OCX_GPb_height_get
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jne 0x1001f1bf
cmp dword [esp + 0x34], eax
jne 0x1001f1bf
mov edx, dword [esp + 0x74]
push edx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
cmp eax, 8
jne 0x1001f1a7
mov eax, dword [esp + 0x74]
push eax
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10032ea0
test eax, eax
je 0x1001f1a7
mov ecx, dword [esp + 0x74]
push ecx
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov ebx, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x4c], ebx
jmp 0x1001f1dc
mov esi, dword [esp + 0x74]
push esi
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
push eax
push esi
push 0xfffff448
push 0x250
jmp 0x1001f1d0
mov edx, dword [esp + 0x74]
push 0
push edx
push 0xfffff3ee
push 0x24c
push str.C:_accusoftgearSOURCEIMG_PROCCOLORSPC.C
call fcn.10046940
mov esi, eax
cmp dword [esp + 0x7c], 7
jne 0x1001f2a4
test esi, esi
jne 0x1001f20e
mov eax, dword [esp + 0x78]
push eax
call sym.GEAR32PO.OCX_GPb_iIG_image_is_valid
test eax, eax
jne 0x1001f20e
mov ecx, dword [esp + 0x74]
push eax
push ecx
push 0xfffff2fe
push 0x25c
jmp 0x1001f298
mov edx, dword [esp + 0x78]
push edx
call sym.GEAR32PO.OCX_GPb_width_get
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
push eax
call sym.GEAR32PO.OCX_GPb_height_get
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
cmp edx, ecx
jne 0x1001f287
cmp dword [esp + 0x34], eax
jne 0x1001f287
mov edx, dword [esp + 0x78]
push edx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
cmp eax, 8
jne 0x1001f26f
mov eax, dword [esp + 0x78]
push eax
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10032ea0
test eax, eax
je 0x1001f26f
mov ecx, dword [esp + 0x78]
push ecx
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov dword [esp + 0x60], eax
mov dword [esp + 0x50], eax
jmp 0x1001f2a4
mov esi, dword [esp + 0x78]
push esi
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
push eax
push esi
push 0xfffff448
push 0x267
jmp 0x1001f298
mov edx, dword [esp + 0x78]
push 0
push edx
push 0xfffff3ee
push 0x263
push str.C:_accusoftgearSOURCEIMG_PROCCOLORSPC.C
call fcn.10046940
mov esi, eax
test esi, esi
jne 0x1001f706
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x68]
cmp eax, 1
push esi
push 0
je 0x1001f2d3
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push 0x18
push eax
push ecx
call fcn.100832b0
mov dword [esp + 0x70], eax
jmp 0x1001f33d
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 8
push edx
push eax
call fcn.100832b0
test eax, eax
mov dword [esp + 0x70], eax
jne 0x1001f33d
mov ecx, dword [esi]
push ecx
call sym.GEAR32PO.OCX_GPb_palette_pointer_get
mov edx, dword [esi]
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], 0
call sym.GEAR32PO.OCX_GPb_palette_entries_get
test eax, eax
jle 0x1001f33d
mov eax, dword [esp + 0x78]
lea esi, [eax + 2]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x68]
mov byte [esi - 2], al
mov byte [esi - 1], al
mov byte [esi], al
mov edx, dword [ecx]
inc eax
push edx
mov dword [esp + 0x78], eax
add esi, 4
call sym.GEAR32PO.OCX_GPb_palette_entries_get
cmp dword [esp + 0x74], eax
jl 0x1001f313
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x1001f706
mov eax, dword [esi]
push eax
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x78], eax
push ecx
call sym.GEAR32PO.OCX_GPb_bytes_per_raster_get
mov edx, dword [esi]
push edx
mov dword [esp + 0x6c], eax
call sym.GEAR32PO.OCX_GPb_image_pointer_get
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
test eax, eax
jle 0x1001f706
mov edx, dword [esp + 0x30]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
cmp eax, 9
ja case.default.0x1001f394
jmp dword [eax*4 + 0x1001f740]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ecx
push edi
push edx
call fcn.100a98d0
jmp 0x1001f6b4
test edx, edx
jle case.default.0x1001f394
mov eax, edx
mov cl, byte [ebx]
mov byte [esi], cl
mov cl, byte [ebp]
inc esi
inc ebx
mov byte [esi], cl
mov cl, byte [edi]
inc esi
inc ebp
mov byte [esi], cl
inc esi
inc edi
dec eax
jne 0x1001f3ba
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
jmp case.default.0x1001f394
test edx, edx
jle case.default.0x1001f394
mov dword [esp + 0x70], edx
mov dl, byte [ebx]
inc ebx
mov byte [esp + 0x16], dl
mov al, byte [ebp]
mov byte [esp + 0x15], al
mov cl, byte [edi]
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
inc ebp
push eax
mov byte [esp + 0x1c], cl
inc edi
call fcn.1001cd10
inc esi
mov cl, byte [esp + 0x10]
mov byte [esi - 1], cl
mov dl, byte [esp + 0x11]
mov byte [esi], dl
mov al, byte [esp + 0x12]
inc esi
mov byte [esi], al
mov eax, dword [esp + 0x70]
inc esi
dec eax
mov dword [esp + 0x70], eax
jne 0x1001f3ed
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
jmp 0x1001f6b4
test edx, edx
jle case.default.0x1001f394
mov dword [esp + 0x70], edx
mov cl, byte [edi]
inc edi
mov byte [esp + 0x18], cl
mov dl, byte [ebp]
mov byte [esp + 0x19], dl
mov al, byte [ebx]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
inc ebp
push edx
mov byte [esp + 0x22], al
inc ebx
call fcn.1001cff0
inc esi
mov al, byte [esp + 0x10]
mov byte [esi - 1], al
mov cl, byte [esp + 0x11]
mov eax, dword [esp + 0x70]
mov byte [esi], cl
mov dl, byte [esp + 0x12]
inc esi
mov byte [esi], dl
inc esi
dec eax
mov dword [esp + 0x70], eax
jne 0x1001f450
jmp 0x1001f6a8
test edx, edx
jle case.default.0x1001f394
mov dword [esp + 0x70], edx
mov al, byte [edi]
inc edi
mov byte [esp + 0x1c], al
mov cl, byte [ebp]
mov byte [esp + 0x1d], cl
mov dl, byte [ebx]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
inc ebp
push ecx
mov byte [esp + 0x26], dl
inc ebx
call fcn.1001d1c0
inc esi
mov dl, byte [esp + 0x10]
mov byte [esi - 1], dl
mov al, byte [esp + 0x11]
mov byte [esi], al
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x70]
inc esi
mov byte [esi], cl
inc esi
dec eax
mov dword [esp + 0x70], eax
jne 0x1001f4a7
jmp 0x1001f6a8
test edx, edx
jle case.default.0x1001f394
mov dword [esp + 0x70], edx
mov dl, byte [edi]
inc edi
mov byte [esp + 0x20], dl
mov al, byte [ebp]
mov byte [esp + 0x21], al
mov cl, byte [ebx]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
inc ebp
push eax
mov byte [esp + 0x2a], cl
inc ebx
call fcn.1001d3c0
inc esi
mov cl, byte [esp + 0x10]
mov byte [esi - 1], cl
mov dl, byte [esp + 0x11]
mov byte [esi], dl
mov al, byte [esp + 0x12]
inc esi
mov byte [esi], al
mov eax, dword [esp + 0x70]
inc esi
dec eax
mov dword [esp + 0x70], eax
jne 0x1001f4fe
jmp 0x1001f6a8
test edx, edx
jle case.default.0x1001f394
mov dword [esp + 0x70], edx
mov cl, byte [edi]
inc edi
mov byte [esp + 0x24], cl
mov dl, byte [ebp]
mov byte [esp + 0x25], dl
mov al, byte [ebx]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
inc ebp
push edx
mov byte [esp + 0x2e], al
inc ebx
call fcn.1001d5c0
inc esi
mov al, byte [esp + 0x10]
mov byte [esi - 1], al
mov cl, byte [esp + 0x11]
mov eax, dword [esp + 0x70]
mov byte [esi], cl
mov dl, byte [esp + 0x12]
inc esi
mov byte [esi], dl
inc esi
dec eax
mov dword [esp + 0x70], eax
jne 0x1001f555
jmp 0x1001f6a8
test edx, edx
jle case.default.0x1001f394
mov dword [esp + 0x70], edx
mov al, byte [edi]
inc edi
mov byte [esp + 0x3c], al
mov cl, byte [ebp]
mov eax, dword [esp + 0x50]
mov byte [esp + 0x3d], cl
mov dl, byte [ebx]
inc ebp
mov byte [esp + 0x3e], dl
mov cl, byte [eax]
inc ebx
inc eax
mov dword [esp + 0x50], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x3c]
push edx
push eax
mov byte [esp + 0x47], cl
call fcn.1001d620
inc esi
mov cl, byte [esp + 0x10]
mov byte [esi - 1], cl
mov dl, byte [esp + 0x11]
mov byte [esi], dl
mov al, byte [esp + 0x12]
inc esi
mov byte [esi], al
mov eax, dword [esp + 0x70]
inc esi
dec eax
mov dword [esp + 0x70], eax
jne 0x1001f5ac
jmp 0x1001f6a8
test edx, edx
jle case.default.0x1001f394
mov dword [esp + 0x70], edx
mov cl, byte [edi]
inc edi
mov byte [esp + 0x28], cl
mov dl, byte [ebp]
mov byte [esp + 0x29], dl
mov al, byte [ebx]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
inc ebp
push edx
mov byte [esp + 0x32], al
inc ebx
call sym.GEAR32PO.OCX_color_HLS_to_RGB
inc esi
mov al, byte [esp + 0x10]
mov byte [esi - 1], al
mov cl, byte [esp + 0x11]
mov eax, dword [esp + 0x70]
mov byte [esi], cl
mov dl, byte [esp + 0x12]
inc esi
mov byte [esi], dl
inc esi
dec eax
mov dword [esp + 0x70], eax
jne 0x1001f612
jmp 0x1001f6a8
test edx, edx
jle case.default.0x1001f394
mov dword [esp + 0x70], edx
mov al, byte [edi]
inc edi
mov byte [esp + 0x2c], al
mov cl, byte [ebp]
mov byte [esp + 0x2d], cl
mov dl, byte [ebx]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
inc ebp
push ecx
mov byte [esp + 0x36], dl
inc ebx
call fcn.1001dd80
inc esi
mov dl, byte [esp + 0x10]
mov byte [esi - 1], dl
mov al, byte [esp + 0x11]
mov byte [esi], al
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x70]
inc esi
mov byte [esi], cl
inc esi
dec eax
mov dword [esp + 0x70], eax
jne 0x1001f662
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], edi
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
xor eax, eax
test esi, esi
jle 0x1001f6e9
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + eax*4 + 0x54]
lea ecx, [esp + eax*4 + 0x54]
add ebx, edi
inc eax
mov dword [ecx], ebx
mov ecx, ebx
mov dword [esp + eax*4 + 0x40], ecx
cmp eax, esi
jl 0x1001f6c2
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
add ecx, eax
mov eax, dword [esp + 0x6c]
dec eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x6c], eax
jne 0x1001f383
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x18