Function at 0x411090
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
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4113ae
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
sub edx, eax
sub edi, eax
mov eax, dword [ebp + 0x10]
sub dword [esp + 0x30], eax
sub ecx, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
cmp dword [esi + 0x30], ebx
je 0x4111a4
mov eax, dword [ebp + 8]
push 1
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 1
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x30]
mov ecx, dword [esp + 0x28]
sub ebx, edx
test al, 2
jne 0x41114c
mov eax, dword [esp + 0x30]
sub eax, ecx
cmp dword [edi], 0
je 0x41119a
mov edi, dword [edi + 0x10]
jmp 0x41117e
test al, 0x40
je 0x411160
mov eax, dword [esp + 0x30]
sub eax, ecx
cmp dword [edi], 0
je 0x41119a
mov edi, dword [edi + 0xc]
jmp 0x41117e
test al, 0x20
mov eax, dword [esp + 0x30]
je 0x411174
sub eax, ecx
cmp dword [edi], 0
je 0x41119a
mov edi, dword [edi + 8]
jmp 0x41117e
sub eax, ecx
cmp dword [edi], 0
je 0x41119a
mov edi, dword [edi + 4]
test edi, edi
je 0x41119a
push ebx
push edx
lea edx, [esp + 0x20]
mov ebx, ecx
push edx
mov ecx, edi
call fcn.0041a3f0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
xor ebx, ebx
cmp dword [esi + 0x68], ebx
je 0x4113ae
cmp dword [esi + 0x38], ebx
je 0x4113ae
mov edi, dword [esi + 0x38]
mov dword [esp + 0x10], 0x801
cmp edi, ebx
jbe 0x4111f6
cmp byte [esi + 0x62], 0
lea eax, [esi + 0x3c]
mov ebx, eax
jne 0x4111d3
mov ebx, dword [eax + 0x20]
xor eax, eax
cmp word [ebx + eax*2 + 4], 0xa
je 0x4111ef
inc eax
cmp eax, edi
jb 0x4111d5
mov edi, 0x825
xor ebx, ebx
mov dword [esp + 0x10], edi
jmp 0x411207
cmp eax, 0xffffffff
jne 0x411201
xor ebx, ebx
mov edi, 0x825
mov dword [esp + 0x10], edi
jmp 0x411207
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x41126a
mov edi, dword [eax + 4]
cmp edi, ebx
je 0x41121d
mov edi, dword [edi + 0x178]
jmp 0x41121f
xor edi, edi
add edx, edi
mov dword [esp + 0x24], edx
mov edx, dword [eax + 4]
cmp edx, ebx
je 0x411234
mov edx, dword [edx + 0x180]
jmp 0x411236
xor edx, edx
add ecx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 4]
cmp ecx, ebx
je 0x41124b
mov ecx, dword [ecx + 0x17c]
jmp 0x41124d
xor ecx, ecx
sub dword [esp + 0x2c], ecx
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x411260
mov eax, dword [eax + 0x184]
jmp 0x411262
xor eax, eax
sub dword [esp + 0x30], eax
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push 1
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], 1
mov byte [esp + 0x21], 0
mov byte [esp + 0x22], 1
mov dword [esp + 0x40], 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x40], 2
mov eax, dword [esi + 0x28]
test al, 2
jne 0x4112df
cmp byte [esi + 0x62], 0
lea eax, [esi + 0x3c]
jne 0x4112b5
mov eax, dword [eax + 0x20]
push edi
mov edi, dword [esi + 0x68]
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 0x411388
mov esi, dword [esi + 0x78]
jmp 0x411346
test al, 0x40
je 0x411315
cmp byte [esi + 0x62], 0
lea eax, [esi + 0x3c]
jne 0x4112ef
mov eax, dword [eax + 0x20]
push edi
mov edi, dword [esi + 0x68]
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 0x411388
mov esi, dword [esi + 0x74]
jmp 0x411346
push edi
test al, 0x20
je 0x4113c3
lea eax, [esp + 0x28]
push eax
lea eax, [esi + 0x38]
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 0x411388
mov esi, dword [esi + 0x70]
mov dword [esp + 0x14], ebx
mov ebx, esi
push 1
lea esi, [esp + 0x14]
call fcn.004108d0
mov esi, dword [esp + 0x10]
test esi, esi
je 0x411386
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]
xor ebx, ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x41139c
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp byte [esp + 0x22], 0
jne 0x4113ae
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
lea ecx, [esp + 0x28]
push ecx
lea eax, [esi + 0x38]
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 0x411388