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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a8c48
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4c8630]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x410db4
mov eax, dword [esi + 0x18]
sub eax, dword [ebp + 0xc]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
sub edx, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
sub edi, eax
mov dword [esp + 0x30], edi
sub ecx, eax
xor edi, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
cmp dword [esi + 0x30], edi
je 0x410c79
push 1
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], 0
mov byte [esp + 0x22], 1
mov dword [esp + 0x40], edi
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x28]
sub edx, dword [esp + 0x24]
mov edi, dword [esi + 0x30]
test al, 2
jne 0x410c1e
mov al, byte [esi + 0x7d]
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x30]
sub eax, ecx
cmp dword [edi], 0
je 0x410c71
sub edi, 0xffffff80
jmp 0x410c5b
mov cl, byte [esi + 0x7d]
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x28]
test al, 0x40
je 0x410c3d
mov eax, dword [esp + 0x30]
sub eax, ecx
cmp dword [edi], 0
je 0x410c71
add edi, 0x58
jmp 0x410c5b
test al, 0x20
mov eax, dword [esp + 0x30]
je 0x410c51
sub eax, ecx
cmp dword [edi], 0
je 0x410c71
add edi, 0x30
jmp 0x410c5b
sub eax, ecx
cmp dword [edi], 0
je 0x410c71
add edi, 8
mov ebx, dword [esp + 0x10]
push ebx
push eax
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00419210
mov dword [esp + 0x40], 0xffffffff
cmp dword [esi + 0x68], 0
je 0x410db4
cmp dword [esi + 0x38], 0
lea edi, [esi + 0x38]
je 0x410db4
mov ecx, dword [edi]
mov dword [esp + 0x10], 0x801
test ecx, ecx
jbe 0x410ccb
cmp byte [edi + 0x2a], 0
lea eax, [edi + 4]
mov edx, eax
jne 0x410cac
mov edx, dword [eax + 0x20]
xor eax, eax
mov ebx, 0xa
cmp word [edx + eax*2 + 4], bx
je 0x410cc6
inc eax
cmp eax, ecx
jb 0x410cb3
mov ebx, 0x825
jmp 0x410cd6
cmp eax, 0xffffffff
jne 0x410cd2
mov ebx, 0x825
jmp 0x410cd6
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push 1
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
xor eax, eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], al
mov byte [esp + 0x22], 1
mov dword [esp + 0x40], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], 2
mov eax, dword [esi + 0x28]
test al, 2
jne 0x410dc9
cmp byte [esi + 0x62], 0
lea eax, [esi + 0x3c]
jne 0x410d26
mov eax, dword [eax + 0x20]
mov edi, dword [esi + 0x68]
push ebx
lea ecx, [esp + 0x28]
push ecx
add eax, 4
push eax
mov eax, dword [esi + 0x78]
xor ecx, ecx
lea edx, [esp + 0x24]
call fcn.004183d0
cmp byte [esi + 0x7c], 0
je 0x410d8e
mov esi, dword [esi + 0x78]
mov ebx, esi
push 1
lea esi, [esp + 0x14]
mov dword [esp + 0x18], 0
call fcn.004108d0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x410d8e
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
dec eax
push eax
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004188c0
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410da2
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [esp + 0x22], 0
jne 0x410db4
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test al, 0x40
je 0x410e02
cmp byte [esi + 0x62], 0
lea eax, [esi + 0x3c]
jne 0x410dd9
mov eax, dword [eax + 0x20]
mov edi, dword [esi + 0x68]
push ebx
lea edx, [esp + 0x28]
push edx
add eax, 4
push eax
mov eax, dword [esi + 0x74]
xor ecx, ecx
lea edx, [esp + 0x24]
call fcn.004183d0
cmp byte [esi + 0x7c], 0
je 0x410d8e
mov esi, dword [esi + 0x74]
jmp 0x410d4a
push ebx
test al, 0x20
je 0x410e37
lea eax, [esp + 0x28]
push eax
mov eax, edi
call fcn.00420480
mov edi, dword [esi + 0x68]
push eax
mov eax, dword [esi + 0x70]
xor ecx, ecx
lea edx, [esp + 0x24]
call fcn.004183d0
cmp byte [esi + 0x7c], 0
je 0x410d8e
mov esi, dword [esi + 0x70]
jmp 0x410d4a
lea ecx, [esp + 0x28]
push ecx
mov eax, edi
call fcn.00420480
mov edi, dword [esi + 0x68]
push eax
mov eax, dword [esi + 0x6c]
xor ecx, ecx
lea edx, [esp + 0x24]
call fcn.004183d0
jmp 0x410d8e