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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x100cea68]
xor eax, esp
mov dword [esp + 0xa0], eax
and dword [esp + 8], 0
mov eax, edx
push ebx
push esi
push edi
push eax
mov dword [esp + 0x30], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x1003ab06
mov eax, 0x80070057
jmp 0x1003b04e
imul ebx, esi, 0x5c
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x68], ebx
lea edi, [ebx + 0x100d1a7c]
push edi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x1003ab3a
mov eax, dword [ebx + 0x100d1a78]
test eax, eax
je 0x1003ab3a
mov edx, dword [esp + 0x34]
mov dword [edx], eax
xor eax, eax
jmp 0x1003b04e
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x68]
sub eax, edx
sub ecx, dword [edi]
cmp ecx, eax
jne 0x1003ab92
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
sub eax, edi
cmp ecx, eax
jne 0x1003ab92
mov eax, dword [ebx + 0x100d1a78]
test eax, eax
je 0x1003ab92
sub edi, dword [ebx + 0x100d1a80]
push edi
lea edi, [ebx + 0x100d1a7c]
sub edx, dword [edi]
push edx
push eax
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov eax, dword [ebx + 0x100d1a78]
lea esi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x1003ab2d
mov eax, dword [ebx + 0x100d1a78]
test eax, eax
je 0x1003abad
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
xor edi, edi
mov dword [ebx + 0x100d1a78], edi
jmp 0x1003abaf
xor edi, edi
mov ecx, esi
call fcn.1003a96e
test eax, eax
je 0x1003abd0
mov dword [esp + 0x3c], edi
lea esi, [esp + 0x3c]
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
jmp 0x1003abd6
lea esi, [ebx + 0x100d1a5c]
lea edi, [esp + 0x88]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x7c]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x90]
lea edi, [esp + 0xa4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [esp + 0x30]
mov ecx, esi
call fcn.1003a932
mov edi, eax
mov ecx, esi
mov dword [esp + 0x20], edi
call fcn.1003a8f6
mov edx, dword [ebx + 0x100d1a50]
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.1003aa64
mov dword [esp + 0x54], eax
test edi, edi
je 0x1003b049
cmp dword [esp + 0x10], 0
je 0x1003b049
mov eax, dword [esp + 0x74]
mov ecx, edi
sub eax, dword [esp + 0x6c]
cmp edi, eax
je 0x1003ac60
mov ecx, dword [esp + 0x7c]
inc ecx
add ecx, dword [esp + 0x84]
lea eax, [ecx + 2]
shl eax, 4
push eax
call fcn.100c6316
mov dword [esp + 0x34], eax
pop ecx
test eax, eax
jne 0x1003ac7f
mov eax, 0x8007000e
jmp 0x1003b04e
or dword [esp + 0x3c], 0xffffffff
mov ecx, esi
or dword [esp + 0x44], 0xffffffff
mov dword [eax], 0x20
mov dword [eax + 4], 1
add eax, 0x20
mov dword [esp + 0x50], eax
call fcn.1003aa01
mov esi, eax
mov dword [esp + 0x5c], esi
test esi, esi
jne 0x1003acb9
mov eax, 0x8000ffff
mov dword [esp + 0x14], eax
jmp 0x1003acbd
mov eax, dword [esp + 0x14]
and dword [esp + 0x24], 0
test eax, eax
js 0x1003af95
push dword [esp + 0x2c]
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x7c]
xor ecx, ecx
add dword [esp + 0x8c], eax
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
add dword [esp + 0x88], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x84]
sub dword [esp + 0x94], eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x80]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 8]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], esi
mov dword [esp + 0x1c], ecx
test edi, edi
jle 0x1003af95
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
or edi, 0xffffffff
add eax, ecx
imul eax, esi
mov esi, dword [esp + 0x58]
add esi, 3
add eax, esi
or esi, edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
cmp dword [eax + 0x18], 0x20
je 0x1003ad82
mov esi, dword [esp + 0x10]
xor edi, edi
dec esi
jmp 0x1003adb7
xor eax, eax
cmp dword [esp + 0x10], eax
jle 0x1003af7a
mov ebx, dword [esp + 0x38]
cmp byte [ebx], 0
je 0x1003ada0
mov esi, eax
cmp edi, 0xffffffff
jne 0x1003ada0
mov edi, eax
add ebx, 4
inc eax
cmp eax, dword [esp + 0x10]
jl 0x1003ad92
mov ebx, dword [esp + 0x24]
cmp edi, 0xffffffff
je 0x1003af7a
mov ecx, dword [esp + 0x70]
mov eax, ecx
sub eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x10]
je 0x1003ae70
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x80]
cmp edi, eax
jl 0x1003ade8
mov eax, ecx
sub eax, dword [esp + 0x10]
sub eax, dword [esp + 0x68]
add edi, eax
jmp 0x1003ae21
cmp edi, edx
jl 0x1003ae21
mov eax, dword [esp + 0x4c]
sub edi, edx
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x88]
inc edi
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
lea edi, [edx + eax]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x80]
cmp esi, eax
jl 0x1003ae3c
sub ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x68]
add esi, ecx
jmp 0x1003ae70
cmp esi, edx
jl 0x1003ae70
mov eax, dword [esp + 0x4c]
sub esi, edx
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x88]
inc esi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov eax, dword [esp + 0x90]
add esi, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
inc esi
cmp eax, 0xffffffff
je 0x1003ae7e
cmp edi, eax
jge 0x1003ae84
mov eax, edi
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x44]
cmp ecx, 0xffffffff
je 0x1003ae91
cmp esi, ecx
jle 0x1003ae97
mov ecx, esi
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x74]
mov eax, edx
sub eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], edx
cmp eax, dword [esp + 0x20]
je 0x1003af1f
cmp ecx, dword [esp + 0x7c]
jl 0x1003af1f
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x84]
cmp ecx, eax
jg 0x1003af1f
mov ecx, dword [esp + 0x18]
test ebx, ebx
jle 0x1003aee7
cmp dword [ecx - 0x10], edi
jne 0x1003aee7
cmp dword [ecx - 8], esi
jne 0x1003aee7
sub edx, dword [esp + 0x84]
sub edx, dword [esp + 0x6c]
inc edx
mov dword [ecx - 4], edx
jmp 0x1003af12
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], eax
mov dword [ecx], edi
mov dword [ecx + 8], esi
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x84]
sub eax, dword [esp + 0x6c]
inc eax
inc ebx
mov dword [ecx + 0xc], eax
add ecx, 0x10
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x84]
jmp 0x1003af76
mov eax, dword [esp + 0x20]
mov edx, ecx
sub eax, dword [esp + 0x84]
cmp ecx, eax
jl 0x1003af3e
mov edx, dword [esp + 0x38]
sub edx, dword [esp + 0x20]
sub edx, dword [esp + 0x6c]
add edx, ecx
mov ecx, dword [esp + 0x18]
test ebx, ebx
jle 0x1003af58
cmp dword [ecx - 0x10], edi
jne 0x1003af58
cmp dword [ecx - 8], esi
jne 0x1003af58
lea eax, [edx + 1]
mov dword [ecx - 4], eax
jmp 0x1003af72
lea eax, [edx + 1]
mov dword [ecx], edi
inc ebx
mov dword [ecx + 8], esi
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], eax
add ecx, 0x10
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x60]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x20]
jl 0x1003ad54
test ebx, ebx
mov ebx, dword [esp + 0x64]
jne 0x1003af9d
mov dword [esp + 0x14], 0x80004005
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
mov ecx, edx
shl ecx, 4
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + esi - 4]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x48], eax
test esi, esi
js 0x1003b03b
mov eax, dword [esp + 0x30]
lea edi, [ebx + 0x100d1a8c]
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x10]
mov dword [eax + 8], edx
lea esi, [esp + 0x40]
mov dword [eax + 0xc], ecx
movsd dword es:[edi], dword [esi]
lea eax, [ecx + 0x20]
push eax
push 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov dword [ebx + 0x100d1a78], eax
test eax, eax
jne 0x1003b006
mov ecx, 0x8007000e
mov dword [esp + 0x14], ecx
jmp 0x1003b00a
mov ecx, dword [esp + 0x14]
test ecx, ecx
js 0x1003b037
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push eax
call dword [sym.imp.GDI32.dll_OffsetRgn]
mov edx, dword [esp + 0x34]
lea esi, [esp + 0x68]
mov ecx, dword [ebx + 0x100d1a78]
lea edi, [ebx + 0x100d1a7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [edx], ecx
mov esi, dword [esp + 0x14]
push dword [esp + 0x30]
call fcn.100c6311
pop ecx
mov eax, esi
jmp 0x1003b04e
mov eax, 0x8000ffff
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100c6890
mov esp, ebp
pop ebp
ret 4