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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x580014]
xor eax, esp
mov dword [esp + 0xc0], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [esp + 0x40], edx
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x20]
xor edx, edx
push edi
mov edi, dword [ebp + 0x24]
inc edx
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 0x2c]
push esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ecx
mov byte [esp + 0x19], dl
mov byte [esp + 0x17], cl
mov byte [esp + 0x18], dl
mov dword [esp + 0x40], ecx
mov dword [esp + 0x5c], ecx
mov byte [esp + 0x1b], cl
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_56788]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x419386
push dword [esp + 0x18]
push ebx
push edi
mov edi, dword [esp + 0x50]
push eax
push dword [esp + 0x30]
push edi
call dword [sym.imp.mso40uiWin32Client.dll_Ordinal_4126]
mov dword [esp + 0x40], eax
test eax, eax
je 0x419386
lea eax, [esp + 0x78]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
xor ecx, ecx
cmp dword [esp + 0x78], ecx
push 1
movzx eax, cl
pop ecx
cmovl eax, ecx
push edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_GetTextAlign]
mov ebx, eax
and eax, 6
mov dword [esp + 0x1c], ebx
cmp eax, 6
jne 0x418f20
mov edx, dword [esp + 0x20]
xor eax, eax
inc eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0x17], al
mov ecx, edi
xor eax, eax
push eax
push dword [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x40]
call fcn.00418553
mov eax, dword [esp + 0x24]
and ebx, 0xfffffff9
cdq
sub eax, edx
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebp + 8]
sar eax, 1
cmp byte [esp + 0x38], 0
jne 0x418f0d
neg eax
push dword [esp + 0x1c]
add ebx, eax
push esi
mov dword [esp + 0x3c], ebx
call dword [sym.imp.GDI32.dll_SetTextAlign]
jmp 0x418f75
cmp eax, 2
jne 0x418f6e
mov edx, dword [esp + 0x20]
xor eax, eax
inc eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0x17], al
mov ecx, edi
xor eax, eax
push eax
push dword [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x40]
call fcn.00418553
cmp byte [esp + 0x38], 0
mov ebx, dword [ebp + 8]
je 0x418f5c
add ebx, dword [esp + 0x24]
jmp 0x418f60
sub ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
and eax, 0xfffffffd
mov dword [esp + 0x1c], eax
push eax
jmp 0x418f13
mov ebx, dword [ebp + 8]
mov dword [esp + 0x34], ebx
push esi
call dword [sym.imp.GDI32.dll_GetBkMode]
mov dword [esp + 0x74], eax
cmp eax, 2
jne 0x41900f
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x418fd8
mov edx, dword [esp + 0x20]
mov ecx, edi
push eax
push dword [esp + 0x1c]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x40]
call fcn.00418553
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0xc]
add eax, ebx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x28]
add eax, ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], eax
jmp 0x418fec
mov ecx, dword [ebp + 0xc]
lea edi, [esp + 0x80]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x60]
xor eax, eax
push eax
push eax
push eax
lea eax, [esp + 0x8c]
push eax
push 2
push ecx
push ebx
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
xor eax, eax
inc eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x20]
mov edi, ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], edi
lea eax, [ecx + eax*2]
mov dword [esp + 0x38], eax
mov eax, edi
mov dword [esp + 0x48], edi
sub eax, ecx
mov ecx, dword [esp + 0x40]
sar eax, 1
mov dword [esp + 0x5c], eax
mov edx, dword [ecx + eax*4 + 0x14]
mov al, byte [esp + 0x15]
test al, al
je 0x41904b
cmp edx, 0xffffffff
jne 0x419167
add edi, 2
mov dword [esp + 0x2c], edi
cmp edi, dword [esp + 0x38]
jae 0x419086
mov esi, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x40]
mov eax, ecx
sar eax, 1
cmp edx, dword [ebx + eax*4 + 0x14]
jne 0x41907a
add edi, 2
add ecx, 2
cmp edi, esi
jb 0x419066
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x2c], edi
sub edi, dword [esp + 0x48]
sar edi, 1
js 0x41939f
cmp edi, 0x7fffffff
ja 0x41939f
cmp edi, dword [esp + 0x30]
je 0x4190d1
cmp byte [esp + 0x14], 0
je 0x4190d1
xor eax, eax
inc eax
test byte [esp + 0x1c], al
jne 0x4190cb
lea eax, [esp + 0x68]
push eax
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
xor eax, eax
inc eax
mov byte [esp + 0x13], al
xor eax, eax
mov byte [esp + 0x14], al
cmp byte [esp + 0x13], 0
je 0x4190f1
mov eax, dword [esp + 0x1c]
xor ecx, ecx
or dword [esp + 0x18], 0x4000
inc ecx
or eax, ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov edx, dword [esp + 0x70]
xor eax, eax
push eax
push eax
push dword [esp + 0x20]
mov eax, dword [esp + 0x68]
mov ecx, edx
neg ecx
sbb ecx, ecx
lea eax, [edx + eax*4]
mov edx, ebx
and ecx, eax
push ecx
push edi
push dword [esp + 0x5c]
mov edi, dword [ebp + 0x10]
mov ecx, esi
push dword [esp + 0x7c]
mov eax, edi
or eax, 0x20000000
push eax
push dword [ebp + 0xc]
call fcn.004181af
and edi, 0xfffffffd
mov byte [esp + 0x16], al
cmp byte [esp + 0x13], 0
mov dword [ebp + 0x10], edi
je 0x41914d
push dword [esp + 0x1c]
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov al, byte [esp + 0x16]
test al, al
je 0x4192fb
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x2c], eax
jae 0x4192fb
mov al, byte [esp + 0x15]
mov edi, dword [esp + 0x44]
test al, al
je 0x4191a7
lea eax, [esp + 0x90]
push eax
push edi
call dword [sym.imp.Mso30Win32Client.dll_Ordinal_15809]
test eax, eax
je 0x4192f5
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x94]
push eax
mov ecx, edi
call fcn.00417c01
mov dword [esp + 0x3c], eax
xor eax, eax
mov byte [esp + 0x15], al
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x20]
sar ecx, 1
js 0x41939f
cmp ecx, 0x7fffffff
ja 0x41939f
push ecx
push dword [esp + 0x44]
call dword [sym.imp.mso40uiWin32Client.dll_Ordinal_24332]
push dword [esp + 0x18]
lea ecx, [esp + 0x54]
mov dword [esp + 0x60], eax
push ecx
lea ecx, [esp + 0x54]
mov edx, edi
push ecx
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0xa0]
push ecx
push eax
mov ecx, esi
call fcn.0041d070
test al, al
je 0x4192f5
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x94]
push eax
mov ecx, edi
call fcn.00417c01
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x3c]
je 0x419024
test byte [esp + 0x18], 0x80
jne 0x419024
mov edx, eax
mov eax, dword [esp + 0x1c]
sub edx, dword [esp + 0x3c]
mov ecx, eax
and cl, 0x18
mov edi, edx
neg edi
cmp cl, 8
cmovne edi, edx
cmp byte [esp + 0x14], 0
je 0x41927b
xor ecx, ecx
inc ecx
test cl, al
jne 0x419275
lea eax, [esp + 0x68]
push eax
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
xor eax, eax
inc eax
mov byte [esp + 0x13], al
xor eax, eax
mov byte [esp + 0x14], al
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_MoveToEx]
push esi
call ebx
mov ecx, dword [esp + 0x5c]
mov eax, dword [ecx + 8]
test eax, eax
je 0x4192bf
cmp eax, 0x384
je 0x4192b9
cmp eax, 0x708
je 0x4192b3
cmp eax, 0xa8c
jne 0x4192c3
add dword [esp + 0x24], edi
jmp 0x4192c3
add dword [esp + 0x28], edi
jmp 0x4192c3
sub dword [esp + 0x24], edi
jmp 0x4192c3
sub dword [esp + 0x28], edi
xor eax, eax
push eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call ebx
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], eax
jmp 0x419024
xor eax, eax
mov bl, al
jmp 0x4192ff
mov bl, byte [esp + 0x16]
cmp dword [esp + 0x74], 2
jne 0x41930f
push 2
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [esp + 0x40]
call dword [sym.imp.mso40uiWin32Client.dll_Ordinal_1531]
cmp dword [esp + 0x4c], 0
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
je 0x41932d
push dword [esp + 0x4c]
push esi
call edi
cmp dword [esp + 0x50], 0
je 0x41933f
push dword [esp + 0x50]
mov edx, dword [esp + 0x48]
push edx
call edi
cmp dword [esp + 0x54], 0
je 0x419350
push dword [esp + 0x54]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [esp + 0x17], 0
je 0x419362
push dword [esp + 0x58]
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
cmp byte [esp + 0x13], 0
je 0x419382
test byte [esp + 0x18], 0x80
jne 0x419382
xor eax, eax
push eax
push dword [esp + 0x70]
push dword [esp + 0x70]
push esi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov al, bl
jmp 0x419388
xor al, al
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051a430
mov esp, ebp
pop ebp
ret 0x2c
call fcn.0041736f
int3