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

Disassembly:
sub esp, 0x490
push ebx
push ebp
push esi
lea eax, [esp + 0x6c]
push edi
lea ecx, [esp + 0x6c]
mov ebp, 1
push eax
push ecx
mov dword [esp + 0x44], ebp
call fcn.100d3780
mov edi, dword [esp + 0x4a8]
mov esi, dword [esp + 0x4a4]
mov edx, edi
push esi
mov eax, dword [edx]
mov dword [esp + 0x58], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x5c], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x60], eax
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x64], ecx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
cmp eax, 8
je 0x1004f68a
push 0
push eax
push 0xfffff448
push 0x12db
jmp 0x1004fbb1
mov ecx, dword [esp + 0x4ac]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x1004f699
jmp dword [eax*4 + 0x1004fbd0]
mov ebx, 3
mov dword [esp + 0x18], 9
jmp 0x1004f6f8
mov ebx, 5
mov dword [esp + 0x18], 0x19
jmp 0x1004f6f8
mov ebx, 7
mov dword [esp + 0x18], 0x31
jmp 0x1004f6f8
mov ebx, 9
mov dword [esp + 0x18], 0x51
jmp 0x1004f6f8
xor ebx, ebx
mov dword [esp + 0x18], ebp
push ebx
push ecx
push 0xfffff308
push 0x12f4
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
test ebx, ebx
jle 0x1004fbbb
mov eax, ebx
cdq
sub eax, edx
lea edx, [esp + 0x78]
mov ebp, eax
sar ebp, 1
push ebp
push ebp
lea eax, [ebp + 1]
push ebx
imul eax, ebx
push ebx
push edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x60], eax
call fcn.1009b9d0
test ebx, ebx
jle 0x1004f754
lea edx, [esp + 0x9c]
mov dword [esp + 0x2c], ebx
mov ecx, ebx
mov eax, 1
mov edi, edx
add edx, 0x40
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x1004f734
mov edi, dword [esp + 0x4a8]
fild dword [esp + 0x18]
mov dword [esp + 0x98], 0
fdivr qword [0x100fd460]
fstp qword [esp + 0x90]
call fcn.100a0c60
push 0x200
push eax
mov dword [esp + 0x7c], eax
call fcn.100a0c80
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x78]
push eax
push esi
call fcn.1009ff90
test eax, eax
jne 0x1004fb88
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004fb88
mov ecx, dword [esp + 0x98]
push 0
push ecx
push eax
call fcn.10023ea0
push edi
mov dword [esp + 0x2c], 0
mov edx, dword [esp + 0x30]
add edx, 0x100
mov dword [esp + 0x54], edx
call sym.GEAR32PO.OCX_rect_number_of_segments
push esi
mov dword [esp + 0x48], eax
call sym.GEAR32PO.OCX_GPb_height_get
push esi
mov dword [esp + 0x68], eax
call sym.GEAR32PO.OCX_GPb_width_get
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x78]
push eax
push ecx
push esi
call fcn.10023e30
mov edx, dword [edi + 4]
mov eax, dword [edi]
push edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.100c4c10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [0x10127e5c]
push ecx
push edx
push eax
push esi
call fcn.100a0090
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 4]
cmp eax, ecx
jge 0x1004f8aa
mov edi, ecx
sub edi, eax
test edi, edi
jle 0x1004f8a3
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [0x10127e58]
push 0
lea edx, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x40]
push edi
push edx
push esi
call fcn.10024070
test eax, eax
mov dword [esp + 0x3c], eax
je 0x1004f89f
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x78]
push eax
inc edx
push ecx
push esi
mov dword [esp + 0x28], edx
call fcn.100a0130
dec edi
test edi, edi
mov dword [esp + 0x14], eax
jg 0x1004f83f
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x4a8]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1004fb88
mov eax, dword [esp + 0x60]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jg 0x1004faf7
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, eax
cmp eax, ebp
lea ecx, [eax + edx]
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], ecx
jge 0x1004f959
mov edx, ebx
mov esi, dword [esp + 0x4c]
imul edx, eax
add edx, esi
lea esi, [ebp + eax]
mov dword [esp + 0x30], edx
xor edi, edi
test ebx, ebx
jle 0x1004f92b
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov edx, dword [ebp]
xor ecx, ecx
test esi, esi
jl 0x1004f915
xor eax, eax
mov al, byte [ecx + edx]
add edi, eax
inc ecx
cmp ecx, esi
jle 0x1004f909
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x1004f900
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov eax, edi
mov edi, dword [0x10127e58]
cdq
idiv dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov byte [edx + edi], al
mov edi, dword [esp + 0x30]
add edi, ebx
inc esi
inc edx
mov dword [esp + 0x30], edi
cmp edx, ebp
mov dword [esp + 0x40], edx
jl 0x1004f8f2
mov eax, dword [esp + 0x20]
mov esi, edx
mov edi, dword [esp + 0x68]
mov edx, edi
sub edx, ebp
cmp ecx, edx
mov dword [esp + 0x48], edx
jle 0x1004f9f2
mov eax, edi
mov edi, ebx
sub eax, ecx
mov edx, dword [esp + 0x4c]
imul edi, eax
add edi, edx
lea esi, [ebp + eax]
mov dword [esp + 0x30], edi
dec ecx
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x38], ecx
jle 0x1004f9c9
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x34]
mov edx, dword [edi]
sub ecx, eax
add ecx, edx
xor edx, edx
test esi, esi
jl 0x1004f9b3
xor eax, eax
mov al, byte [edx + ecx]
add ebp, eax
inc edx
cmp edx, esi
jle 0x1004f9a7
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x1004f997
mov edi, dword [esp + 0x30]
mov eax, ebp
cdq
idiv edi
mov edx, dword [0x10127e58]
add edi, ebx
inc esi
mov dword [esp + 0x30], edi
mov byte [ecx + edx], al
mov eax, dword [esp + 0x48]
cmp ecx, eax
jg 0x1004f984
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x40]
mov ebp, dword [esp + 0x34]
sub ecx, ebp
sub esi, ebp
cmp esi, ecx
mov dword [esp + 0x48], ecx
jge 0x1004fa53
xor edi, edi
test ebx, ebx
jle 0x1004fa37
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov eax, dword [ebp]
mov edx, esi
add edx, eax
xor ecx, ecx
xor eax, eax
mov al, byte [ecx + edx]
add edi, eax
inc ecx
cmp ecx, ebx
jl 0x1004fa15
mov eax, dword [esp + 0x10]
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x1004fa0c
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x34]
mov eax, edi
cdq
idiv dword [esp + 0x18]
mov edx, dword [0x10127e58]
add edx, ebp
inc esi
cmp esi, ecx
mov byte [edx + esi - 1], al
jl 0x1004f9fe
mov eax, dword [esp + 0x20]
mov ecx, dword [0x10127e58]
mov esi, dword [esp + 0x4a4]
add ecx, eax
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10006d80
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x1004fa91
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x70]
push edi
push ecx
push edx
call eax
test eax, eax
je 0x1004fabe
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x78]
inc eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
call fcn.100a0130
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
cmp edx, dword [esp + 0x60]
jle 0x1004f8c6
jmp 0x1004fae9
mov eax, dword [esp + 0x28]
push edi
push eax
push 0xfffff7bf
push 0x139c
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0
inc eax
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x4a4]
mov edi, dword [esp + 0x4a8]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1004fb88
mov eax, dword [esp + 0x64]
mov edi, dword [edi + 0xc]
sub eax, ebp
cmp edi, eax
jl 0x1004fb88
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x7c]
sub edi, ebx
mov ebx, edi
lea edi, [eax - 1]
sub eax, ebx
cmp edi, eax
jl 0x1004fb88
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [0x10127e58]
push 0
lea edx, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push edi
lea edx, [esp + 0x40]
push 0
push edx
push esi
call fcn.10024070
test eax, eax
je 0x1004fb88
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x78]
push eax
inc edx
push ecx
push esi
mov dword [esp + 0x28], edx
call fcn.100a0130
dec edi
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
sub edx, ebx
cmp edi, edx
jge 0x1004fb25
call fcn.100a0020
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1004fbbb
push eax
mov eax, dword [esp + 0x78]
push eax
call fcn.100a1010
test eax, eax
je 0x1004fbbb
push 0
push eax
push 0xfffff42a
push 0x13d1
push str.C:_accusoftgear_sourceIMG_PROC_filterip.c
call fcn.10046940
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x490
ret 0xc