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

Disassembly:
sub esp, 0x74
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
push esi
mov eax, dword [ebx + 0x18]
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 4]
push 0
push 0
push 0x1302
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
call edi
mov edx, dword [esi + 4]
push 0
push 0
push 0x130b
push edx
mov dword [esp + 0x54], eax
call edi
mov edx, dword [ebx + 8]
mov edi, dword [esi + 0x20]
xor ecx, ecx
cmp edx, eax
sete cl
add ebx, 0x1c
lea edx, [esp + 0x48]
mov ebp, ecx
push ebx
push edx
mov dword [esp + 0x28], ebp
and edi, 2
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x54]
test ebp, ebp
je 0x436cc0
dec eax
jmp 0x436cc3
add eax, 2
mov dword [esp + 0x54], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0xc]
test edi, edi
mov dword [esp + 0x18], eax
je 0x436ce0
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x436ce7
mov ecx, esi
call fcn.004365b0
push 0x3f333333
push eax
call fcn.00436280
add esp, 8
mov ebx, eax
test ebp, ebp
jne 0x436d05
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], ebx
mov ebx, eax
test byte [esi + 0x20], 8
je 0x436eed
mov ecx, dword [esp + 0x14]
push 0xc
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x10
jl 0x436eed
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, eax
mov cl, ah
shr eax, 0x10
and eax, 0xff
mov ebp, dword [esp + 0x4c]
mov esi, eax
xor eax, eax
mov edi, ebx
mov al, bh
shr ebx, 0x10
and ebx, 0xff
mov dword [esp + 0x30], esi
sub ebx, esi
mov esi, dword [esp + 0x54]
and edx, 0xff
and ecx, 0xff
and edi, 0xff
and eax, 0xff
sub esi, ebp
xor ebp, ebp
sub edi, edx
sub eax, ecx
cmp esi, ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
jle 0x436e70
lea edx, [edi + edi]
add eax, eax
mov dword [esp + 0x40], edx
lea edx, [ebx + ebx]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
jmp 0x436dab
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
mov bl, byte [esp + 0x30]
lea eax, [edx + ebp]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
add eax, 2
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], edx
cdq
idiv esi
add al, bl
xor ebx, ebx
mov bh, al
mov eax, dword [esp + 0x24]
cdq
idiv esi
add al, cl
mov bl, al
mov eax, dword [esp + 0x28]
cdq
idiv esi
mov dl, byte [esp + 0x34]
shl ebx, 8
add al, dl
and eax, 0xff
or ebx, eax
mov eax, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edi, eax
cmp edi, 0xffffffff
je 0x436e3b
mov edx, dword [esp + 0x14]
push 0
push 0
lea ecx, [esp + 0x60]
push 0
push ecx
push 2
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
add ebx, ecx
mov ecx, dword [esp + 0x28]
add ebp, 2
add edi, edx
add ecx, eax
cmp ebp, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ecx
jl 0x436da7
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edi, 3
xor eax, eax
add edx, edi
push 1
test ebp, ebp
setne al
mov dword [esp + 0x4c], edx
lea edx, [ecx + eax + 3]
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x54], edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [0x46b21c]
mov dword [esp + 0x68], edi
mov dword [esp + 0x10], eax
mov ecx, 0x64
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x436ecd
cmp dword [eax - 4], ecx
jge 0x436f80
mov edi, dword [eax - 8]
cmp edi, ecx
mov dword [esp + 0x40], edi
jle 0x436eda
mov ecx, edi
push ecx
lea ecx, [esp + 0x14]
call fcn.00401ce0
test eax, eax
jne 0x436f33
jmp 0x436f80
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push ecx
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x436e78
mov ecx, dword [esp + 0x14]
push 0
push 0
lea eax, [esp + 0x50]
push 0
push eax
push 2
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esp + 0x14]
push edi
push edx
call ebx
jmp 0x436e78
lea ecx, [edi + edi + 2]
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [eax - 8], ecx
mov eax, dword [0x46b220]
cmp ebx, eax
je 0x436f74
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x436f74
push ebx
call fcn.00459de2
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x68]
mov dword [esp + 0x78], 0x63
mov ecx, dword [eax + 8]
push edx
mov edx, dword [esi + 4]
push ecx
push 0x133c
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x10]
call fcn.00401d40
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], 0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x437019
mov ecx, ebp
mov edx, dword [esp + 0x4c]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffc
add ecx, 4
or ecx, 1
push ecx
mov ecx, dword [esp + 0x4c]
push 0x9b9b9b
push 0xffffff
push 0x10
push 0x10
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x98]
push edx
push ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_DrawEx]
add dword [esp + 0x48], 0x13
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
sub eax, 3
lea edx, [esp + 0x14]
mov dword [esp + 0x50], eax
sub eax, ecx
push eax
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00436320
mov edx, dword [esi]
add esp, 0xc
mov ecx, esi
push ebp
call dword [edx + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push 0x801
push ecx
push 0xffffffffffffffff
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x10]
mov edx, dword [0x46b220]
pop edi
pop esi
lea ecx, [eax - 0xc]
pop ebp
cmp ecx, edx
pop ebx
je 0x4370a0
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4370a0
mov edx, dword [esp]
add edx, 0xfffffff4
push edx
call fcn.00459de2
add esp, 4
add esp, 0x74
ret 4