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

Disassembly:
push 0xffffffffffffffff
push 0x101049d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], esi
cmp eax, esi
je 0x100d7faf
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push 0x10195be0
push eax
call dword [ecx]
test eax, eax
jl 0x100d7faf
mov edi, dword [esp + 0xbc]
mov eax, dword [edi + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x10]
cmp eax, esi
jle 0x100d78a3
cmp dword [edi + 0x14], esi
jg 0x100d78a7
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x2c]
cdq
mov ecx, eax
mov eax, dword [edi + 0x28]
xor ecx, edx
sub ecx, edx
cdq
mov dword [esp + 0x18], ecx
xor eax, edx
lea ecx, [esp + 0x14]
sub eax, edx
push ecx
mov ecx, dword [edi]
mov dword [esp + 0x18], eax
call fcn.100fe027
mov esi, dword [ebp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x30]
mov ebx, dword [esp + 0x14]
sub esi, edx
mov ecx, dword [edi]
cdq
xor eax, edx
mov dword [esp + 0x40], ebx
sub eax, edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x34]
cdq
xor eax, edx
sub eax, edx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
call fcn.100fe027
mov eax, dword [edi + 0x30]
test eax, eax
je 0x100d791a
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov ebx, dword [esp + 0x14]
cmp ebx, eax
jl 0x100d7923
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x40]
sub ebx, eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x48], ebx
test eax, eax
je 0x100d7936
mov ebp, dword [esp + 0x18]
cmp ebp, esi
jl 0x100d7938
mov ebp, esi
mov eax, ebx
lea ecx, [esp + 0x14]
cdq
xor eax, edx
push ecx
sub eax, edx
mov ecx, dword [edi]
neg ebp
mov dword [esp + 0x18], eax
mov eax, ebp
cdq
xor eax, edx
mov dword [esp + 0x48], ebp
sub eax, edx
mov dword [esp + 0x1c], eax
call fcn.100fe042
test esi, esi
jle 0x100d7fa5
test ebx, ebx
jle 0x100d7fa5
test ebp, ebp
jge 0x100d7fa5
mov esi, dword [edi + 0x10]
mov ebp, dword [edi + 0x14]
test esi, esi
jg 0x100d7986
mov esi, dword [esp + 0x14]
test ebp, ebp
jg 0x100d798e
mov ebp, dword [esp + 0x18]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov ebx, dword [sym.imp.GDI32.dll_LPtoDP]
mov dword [esp + 0x20], eax
mov eax, dword [edi]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x1c]
push 1
mov eax, dword [eax + 8]
push edx
push eax
call ebx
mov eax, ebp
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
sub ecx, edx
cdq
mov dword [esp + 0x28], ecx
xor eax, edx
lea ecx, [esp + 0x24]
sub eax, edx
push ecx
mov ecx, dword [edi]
mov dword [esp + 0x28], eax
call fcn.100fbb07
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
call fcn.100fbb07
lea eax, [edi + 0x18]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x90], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x9c], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
neg eax
sbb eax, eax
inc eax
cmp eax, 1
mov dword [esp + 0x78], eax
jne 0x100d7a3a
mov eax, dword [edi]
lea ecx, [esp + 0x8c]
push 2
push ecx
mov edx, dword [eax + 8]
push edx
call ebx
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [edi]
push 1
mov edx, dword [ecx]
call dword [edx + 0x34]
mov eax, dword [0x101ceca4]
xor ebx, ebx
cmp eax, 2
mov dword [esp + 0x34], ebx
je 0x100d7ab2
cmp dword [edi + 0x44], ebx
jne 0x100d7ab2
mov esi, dword [esp + 0x10]
cmp esi, ebx
jne 0x100d7ab6
mov edx, dword [esp + 0x44]
push ebx
add edx, 0x28
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax]
push edx
mov edx, dword [edi]
mov edx, dword [edx + 4]
push edx
push eax
call dword [ecx + 0x20]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jmp 0x100d7f8c
mov esi, dword [esp + 0x10]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], 0x10194cc0
mov eax, dword [edi]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov eax, dword [eax + 4]
push edx
push eax
mov dword [esp + 0xc0], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x60]
call fcn.100fbe81
cmp eax, ebx
je 0x100d7f65
lea ecx, [esp + 0x4c]
call fcn.100fb244
mov eax, dword [edi]
mov byte [esp + 0xb4], 1
cmp eax, ebx
jne 0x100d7b0c
xor eax, eax
jmp 0x100d7b0f
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x50]
call fcn.100fb2fb
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x5c]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.100fb43c
mov eax, dword [edi + 0x44]
cmp eax, ebx
mov dword [esp + 0x3c], eax
jne 0x100d7b4c
mov dword [esp + 0x3c], 0xcc0020
cmp esi, ebx
jne 0x100d7b65
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], esi
jmp 0x100d7c54
cmp esi, 0xb
je 0x100d7be1
cmp esi, 0xc
je 0x100d7be1
mov eax, dword [edi + 0x38]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], ebp
test eax, eax
mov dword [esp + 0x30], esi
je 0x100d7ba2
imul eax, ebp
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebp, edx
mov dword [esp + 0x2c], ebp
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x100d7bc5
imul eax, esi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov esi, edx
mov dword [esp + 0x30], esi
test ebp, ebp
jg 0x100d7bd2
mov ebp, 1
mov dword [esp + 0x2c], ebp
test esi, esi
jg 0x100d7c54
mov esi, 1
mov dword [esp + 0x30], esi
jmp 0x100d7c54
fild dword [esp + 0x14]
fild dword [esp + 0x24]
fdiv st(1)
fild dword [esp + 0x18]
fst qword [esp + 0x7c]
fild dword [esp + 0x28]
fdiv st(1)
fstp qword [esp + 0x64]
fstp st(0)
fcom qword [esp + 0x64]
fnstsw ax
test ah, 1
jne 0x100d7c10
fstp st(0)
fld qword [esp + 0x64]
fxch st(1)
fmul st(1)
call fcn.100e50c8
fld qword [esp + 0x7c]
fmul st(1)
mov ebp, eax
mov dword [esp + 0x2c], ebp
call fcn.100e50c8
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xb
mov dword [esp + 0x30], esi
fstp st(0)
jne 0x100d7c45
mov dword [esp + 0x10], 0xa
jmp 0x100d7c54
cmp dword [esp + 0x10], 0xc
jne 0x100d7c54
mov dword [esp + 0x10], 5
mov eax, dword [edi + 4]
cmp eax, 0x7fffffff
je 0x100d7cc7
push eax
lea ecx, [esp + 0x68]
call fcn.100fbf3e
lea edx, [esp + 0x64]
lea ecx, [esp + 0x4c]
push edx
mov byte [esp + 0xb8], 2
call fcn.100fb48f
push 0xf00021
push esi
mov ebx, eax
mov eax, dword [esp + 0x58]
push ebp
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push ebx
lea ecx, [esp + 0x50]
call fcn.100fb48f
mov dword [esp + 0x64], 0x10194cb4
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 3
call fcn.100fbed8
mov ebx, dword [esp + 0x34]
mov byte [esp + 0xb4], 1
jmp 0x100d7cdd
mov ecx, dword [esp + 0x50]
push 0xff0062
push esi
push ebp
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov ecx, dword [esp + 0x44]
push 0
add ecx, 0x28
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x80]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x64]
push esi
push ebp
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
jne 0x100d7f54
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x100d7d53
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x4c]
neg eax
sbb eax, eax
mov ecx, dword [edi]
and eax, edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x20]
push 0
push 0
push eax
mov eax, dword [esp + 0x30]
push esi
push ebp
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x100d7f4f
cmp edx, 0xa
jge 0x100d7e04
mov eax, dword [esp + 0x24]
cmp ebp, eax
jle 0x100d7d66
mov ebp, eax
mov ecx, dword [esp + 0x28]
cmp esi, ecx
jle 0x100d7d70
mov esi, ecx
cmp edx, 1
je 0x100d7dab
cmp edx, 4
je 0x100d7dab
cmp edx, 7
je 0x100d7dab
cmp edx, 2
je 0x100d7d9a
cmp edx, 5
je 0x100d7d9a
cmp edx, 8
je 0x100d7d9a
mov edx, dword [esp + 0x1c]
sub eax, ebp
add eax, edx
mov ebx, eax
jmp 0x100d7daf
sub eax, ebp
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x1c]
sar ebx, 1
add ebx, eax
jmp 0x100d7daf
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, 3
jg 0x100d7dbe
mov eax, dword [esp + 0x20]
jmp 0x100d7dda
cmp eax, 6
jg 0x100d7dd2
mov eax, ecx
mov ecx, dword [esp + 0x20]
sub eax, esi
cdq
sub eax, edx
sar eax, 1
jmp 0x100d7dd8
mov eax, dword [esp + 0x20]
sub eax, esi
add eax, ecx
push dword [esp + 0x3c]
lea ecx, [esp + 0x50]
mov edx, dword [edi]
neg ecx
sbb ecx, ecx
push 0
and ecx, dword [esp + 0x58]
push 0
push ecx
mov ecx, dword [edx + 4]
push esi
push ebp
push eax
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x100d7f4f
jne 0x100d7f4f
mov edx, dword [esp + 0x28]
xor ebp, ebp
test edx, edx
mov dword [esp + 0x10], esi
jle 0x100d7f4f
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ecx, edx
sub ecx, ebp
cmp esi, ecx
jle 0x100d7e30
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x100d7f43
sub eax, esi
cmp ebx, eax
jle 0x100d7e46
mov ebx, eax
mov eax, dword [esp + 0x78]
test eax, eax
je 0x100d7eeb
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea eax, [edx + ebp]
mov edx, dword [esp + 0x1c]
add eax, ecx
lea ecx, [esi + ebx]
add ecx, edx
mov edx, dword [esp + 0x20]
add edx, ebp
mov dword [esp + 0x88], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x1c]
add edx, esi
mov dword [esp + 0x84], ecx
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x7c]
mov dword [esp + 0x80], edx
lea ecx, [esp + 0x8c]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x9c]
mov dword [esp + 0xa4], edx
push ecx
mov dword [esp + 0xac], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x100d7f2d
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [edx + ebp]
lea edx, [esi + eax]
lea eax, [esp + 0x4c]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x50]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x3c]
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [edi]
push ebx
push ecx
mov ecx, dword [esp + 0x50]
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add esi, edx
cmp esi, eax
jl 0x100d7e3e
mov edx, dword [esp + 0x28]
add ebp, dword [esp + 0x30]
cmp ebp, edx
jl 0x100d7e20
mov ebx, 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 0
call fcn.100fb379
mov dword [esp + 0x5c], method.CGdiObject.virtual_0
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb4], 4
call fcn.100fbed8
mov dword [esp + 0xb4], 0xffffffff
mov edi, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x20]
mov eax, dword [esp + 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
jmp 0x100d7fb1
mov eax, dword [esp + 0x38]
push eax
mov edx, dword [eax]
call dword [edx + 8]
xor eax, eax
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa8
ret 4