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

Disassembly:
sub esp, 0x7c
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x14]
push ebx
push ebp
mov ebp, dword [eax + 0xc]
push esi
mov esi, dword [eax + 0x10]
xor ebx, ebx
push edi
mov edi, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x17], 1
mov byte [esp + 0x15], bl
mov byte [esp + 0x14], bl
mov byte [esp + 0x16], 0xff
mov dword [esp + 0x60], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edx
cmp dword [ecx + 4], ebx
je 0x409f60
mov ecx, dword [ecx]
lea eax, [esp + 0x70]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x18
jne 0x409ed2
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
jmp 0x409ed6
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push edx
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], eax
call fcn.00402b10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x70]
push ecx
push edx
push 0
push 0
push ebx
sub eax, ebp
push eax
mov eax, dword [esp + 0xb0]
sub esi, edi
push esi
push ebp
push edi
push eax
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
test ebx, ebx
je 0x40a272
mov ecx, dword [esp + 0x38]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x409f4f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 8
xor ecx, ecx
cmp dword [eax + 0x1c], ebx
je 0x409f6c
mov ecx, 8
test dword [eax + 0x18], 0x8000000
je 0x409f7a
or ecx, 4
jmp 0x409f99
mov edx, dword [esp + 0x90]
cmp dword [edx + 0x28], eax
jne 0x409f91
mov edx, dword [edx + 0x34]
or edx, ecx
mov dword [esp + 0x10], edx
jmp 0x409f9d
cmp dword [edx + 0x2c], eax
jne 0x409f99
or ecx, 0x40
mov dword [esp + 0x10], ecx
mov cl, byte [esp + 0x10]
test cl, 0x40
je 0x40a04c
mov eax, 3
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [0x4aabd8]
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x18
jne 0x409fe1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
jmp 0x409fe5
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x20], eax
cdq
mov dword [esp + 0x24], ecx
mov ecx, dword [0x4aabd8]
sub eax, edx
sar eax, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push ecx
lea ebx, [esp + 0x34]
mov dword [esp + 0x24], eax
call fcn.00402b10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x70]
push eax
push ecx
mov ecx, dword [esp + 0xa0]
sub edx, ebp
push edx
mov eax, esi
sub eax, edi
push eax
push edi
push ecx
lea eax, [esp + 0x64]
xor edi, edi
mov ebx, ebp
call fcn.00408b30
lea eax, [esp + 0x4c]
jmp 0x40a0d1
test cl, 8
je 0x40a0db
mov eax, dword [eax + 0x20]
add eax, 0xffff63bf
cmp eax, 4
ja 0x40a0db
mov ecx, dword [0x4aabd8]
mov eax, 3
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.0042cc40
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
cdq
sub eax, edx
mov edx, dword [0x4aabd8]
mov ebx, eax
push edx
lea eax, [esp + 0x4c]
sar ebx, 1
call fcn.00402b90
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
push ecx
push ebx
push edx
mov edx, dword [esp + 0xa0]
sub eax, ebp
push eax
mov ecx, esi
sub ecx, edi
push ecx
push edi
mov edi, ebx
push edx
lea eax, [esp + 0x3c]
mov ebx, ebp
call fcn.00408b30
lea eax, [esp + 0x64]
add esp, 0x1c
call fcn.00402ad0
xor ebx, ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp eax, ebx
je 0x40a1ae
mov edi, dword [ecx + 8]
lea ecx, [esp + 0x48]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x18
jne 0x40a109
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
jmp 0x40a10d
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x30], eax
cdq
sub eax, edx
mov esi, eax
mov eax, edi
sar esi, 1
sub eax, esi
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x60]
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x34]
sar edi, 1
sub eax, ebp
cdq
sub eax, edx
sar eax, 1
add eax, ebp
add edi, ecx
test byte [esp + 0x10], 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
je 0x40a157
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
push eax
lea ebx, [esp + 0x4c]
call fcn.00402b10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
imul eax, esi
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push esi
push 0
push eax
mov eax, dword [esp + 0x34]
push edx
push ecx
mov ecx, dword [esp + 0xb0]
push esi
push eax
push edi
push ecx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov eax, ebx
call fcn.00402ad0
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], esi
lea esi, [eax + 0xc]
or ebx, 0xffffffff
xor edx, edx
test byte [esp + 0x10], 8
mov dword [esp + 0x74], ebp
mov dword [esp + 0x7c], ecx
movzx ecx, word [esi]
mov eax, esi
je 0x40a209
cmp dx, cx
je 0x40a236
mov edi, dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, cx
mov edx, 0xa
cmp dx, cx
je 0x40a204
push eax
call edi
movzx ecx, word [eax]
xor edx, edx
cmp dx, cx
jne 0x40a1eb
jmp 0x40a236
lea esi, [eax + 2]
jmp 0x40a236
cmp dx, cx
je 0x40a236
mov edi, dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, cx
mov edx, 0xa
cmp dx, cx
je 0x40a230
push eax
call edi
movzx ecx, word [eax]
xor edx, edx
cmp dx, cx
jne 0x40a217
jmp 0x40a236
sub eax, esi
sar eax, 1
mov ebx, eax
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x90]
mov edx, dword [ecx + 0x44]
and al, 4
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1a5c52
add eax, 0x4c1414
push eax
mov eax, dword [esp + 0x98]
push edx
push ebx
push esi
push eax
lea edi, [esp + 0x84]
call fcn.0040ab50
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 8