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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10170640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x24], 1
push esi
mov esi, dword [ebx + 0x110]
test esi, esi
je 0x10038276
mov ecx, esi
call fcn.100ab074
test eax, eax
je 0x10038276
mov ecx, esi
call fcn.100ab074
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xa4]
mov ecx, dword [ebp + 8]
xor edx, edx
test al, al
movzx ecx, cl
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
jmp 0x1003827c
mov al, byte [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp byte [0x101738ac], 0
jne 0x100382b6
mov ecx, ebx
call fcn.1003d1ac
test al, al
je 0x10038299
cmp byte [ebx + 0x230], 0
je 0x100382b6
cmp byte [ebp - 0x1c], 0
je 0x100382bf
mov ecx, ebx
call fcn.1003d1ac
test al, al
jne 0x100382bf
cmp byte [ebx + 0x230], al
je 0x100382c8
push 0
jmp 0x100382b8
push 1
mov ecx, ebx
call fcn.100303dd
cmp byte [ebx + 0x230], 0
jne 0x100382d0
xor eax, eax
inc eax
jmp 0x1003855e
mov ecx, dword [ebx + 4]
call fcn.1000411d
mov ecx, ebx
call fcn.10037d22
cmp dword [ebx + 0x110], 0
mov byte [ebp - 0x15], 0
je 0x1003853d
mov ecx, ebx
call fcn.1003d19b
xor esi, esi
cmp dword [eax + 8], esi
ja 0x1003830e
mov ecx, ebx
call fcn.1003d19b
cmp dword [eax + 0xc], esi
jbe 0x1003853d
push edi
mov ecx, ebx
call fcn.1003d19b
mov eax, dword [eax + 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, ebx
mov dword [ebp - 0x20], eax
call fcn.1003d19b
mov ecx, ebx
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
call fcn.1003d19b
mov ecx, ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
call fcn.1003d19b
mov ecx, ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0xc], eax
call fcn.1003d19b
mov edi, dword [ebx + 0x110]
mov ecx, ebx
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
call fcn.1003d19b
cmp dword [eax + 0x38], esi
je 0x100384f1
mov ecx, ebx
call fcn.1003d19b
mov eax, dword [eax + 0x38]
mov esi, dword [eax + 0x14]
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x100384f1
cmp byte [ebx + 0x126], 0
jne 0x10038396
test byte [edi + 0x15c], 0x40
je 0x100383bb
cmp dword [edi + 0x33c], 2
jne 0x100383ad
mov eax, dword [ebx]
mov ecx, ebx
mov byte [ebp - 0x15], 1
call dword [eax + 0x158]
mov byte [ebx + 0x126], 0
and dword [edi + 0x15c], 0xffffffbf
mov ecx, ebx
call fcn.1003d19b
mov eax, dword [eax + 0x38]
test byte [eax + 0x84], 2
je 0x10038477
cmp dword [edi + 0x33c], 2
jne 0x100383e9
mov eax, dword [ebx]
mov ecx, ebx
mov byte [ebp - 0x15], 1
call dword [eax + 0x158]
mov esi, dword [esi]
mov ecx, ebx
call fcn.1003d19b
mov ecx, ebx
mov eax, dword [eax + 0x38]
push dword [eax + 0x78]
call fcn.1003d19b
mov eax, dword [eax + 0x38]
push dword [eax + 0x74]
push dword [ebp - 0x1c]
call dword [esi + 0x5c]
mov ecx, ebx
call fcn.1003d19b
mov ecx, ebx
mov esi, eax
call fcn.1003d19b
mov ecx, ebx
push dword [eax + 0x24]
call fcn.1003d19b
mov ecx, ebx
push dword [eax + 0x20]
call fcn.1003d19b
mov ecx, ebx
push dword [eax + 0x1c]
call fcn.1003d19b
mov ecx, ebx
push dword [eax + 0x18]
call fcn.1003d19b
mov ecx, ebx
push dword [eax + 0x14]
call fcn.1003d19b
mov ecx, ebx
push dword [eax + 0x10]
call fcn.1003d19b
mov ecx, ebx
push dword [eax + 4]
push dword [esi]
call fcn.1003c58b
mov eax, dword [edi + 0x10c]
mov esi, dword [ebp - 0x1c]
test eax, eax
je 0x10038477
and dword [eax + 0x84], 0xfffffffd
mov eax, dword [esi]
push 0xb
push esi
call dword [eax + 0x34]
test eax, eax
je 0x100384a8
push 0x7f7f7f
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, dword [ebp - 0x20]
mov esi, eax
push esi
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x100384f4
lea eax, [ebx + 0x231]
push str.viewport_ADOBERAYTRACER
push eax
call sub.MSVCR120.dll_strcmp
mov edi, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
pop ecx
pop ecx
push 0
push dword [ebx + 0x118]
test eax, eax
mov eax, dword [ebx + 0x110]
push edx
push edi
push dword [eax + 0x10c]
mov ecx, dword [eax]
push eax
jne 0x100384e6
call dword [ecx + 0x2ac]
jmp 0x100384f4
call dword [ecx + 0x2b0]
mov dword [ebp - 0x24], eax
jmp 0x100384f4
mov edi, dword [ebp - 0x20]
push edi
mov ecx, ebx
call fcn.1003d19b
push dword [eax + 0x3c]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [ebx + 0x110]
mov ecx, ebx
mov edi, dword [esi]
call fcn.1003d19b
push dword [eax + 0x38]
push 6
push esi
call dword [edi + 0x15c]
mov ecx, ebx
call fcn.1003d19b
pop edi
mov eax, dword [eax + 0x38]
and dword [eax + 0x84], 0xffffffbf
cmp dword [ebp - 0x24], 0xfffffff4
jne 0x1003853d
push 3
pop eax
jmp 0x1003855e
mov ecx, dword [ebx + 0x134]
test ecx, ecx
je 0x1003854c
call fcn.10077aa2
cmp byte [ebp - 0x15], 0
je 0x1003855c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x154]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10123bfc
mov esp, ebp
pop ebp
ret 4