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

Disassembly:
push 0xffffffffffffffff
push 0x436241
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x40], edi
mov ebp, dword [esp + 0xf8]
lea eax, [esp + 0x70]
xor ebx, ebx
push eax
push ebp
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
cmp eax, ebx
je 0x413dcf
push ebp
call dword [sym.imp.GDI32.dll_SaveDC]
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [edi + 0x54]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
xor esi, esi
mov dword [esp + 0x58], esi
mov eax, dword [edi + 0x24]
xor ecx, ecx
cmp eax, ebx
mov byte [esp + 0xf0], 1
mov dword [esp + 0x54], ecx
jle 0x413dbb
mov ebx, dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [edi + 0x20]
mov esi, dword [edx + ecx*4]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], esi
mov eax, dword [esi + 0x1c]
cmp eax, ecx
jg 0x413da1
mov ecx, dword [esi + 0x24]
mov eax, dword [esp + 0x70]
cmp ecx, eax
jl 0x413da1
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x7c]
cmp edx, eax
jg 0x413da1
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x74]
cmp eax, ecx
jl 0x413da1
mov al, byte [edi + 0x34]
mov ecx, dword [edi + 4]
and al, 1
push ecx
mov byte [esp + 0x17], al
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x413773
mov eax, dword [esi + 0x30]
test eax, eax
je 0x413773
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x413735
mov edx, dword [esp + 0x54]
mov eax, dword [edi + 0x68]
cmp eax, edx
je 0x413754
mov eax, dword [edi + 0x64]
and eax, 4
cmp al, 4
jne 0x413744
cmp dword [edi + 0x2c], esi
je 0x413754
cmp dword [edi + 0x30], esi
jne 0x41375d
mov ecx, dword [edi + 0x34]
shr ecx, 4
test cl, 1
je 0x41375d
mov edx, dword [esi + 0x10]
mov dword [esp + 0x24], edx
jmp 0x41377a
mov al, byte [esp + 0x13]
test al, al
je 0x413781
cmp dword [edi + 0x2c], esi
jne 0x413781
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], eax
jmp 0x41377a
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x24], 0xffffffff
jne 0x413788
mov edx, dword [esi + 0xc]
mov dword [esp + 0x24], edx
mov eax, dword [edi + 0x34]
shr eax, 4
test al, 1
je 0x41383c
mov eax, dword [edi + 0x30]
push 0x11
cmp eax, esi
jne 0x41382e
mov edi, dword [sym.imp.GDI32.dll_GetStockObject]
call edi
mov edx, eax
test edx, edx
jne 0x4137b7
push 0x11
call edi
mov edx, eax
xor eax, eax
mov ecx, 0x16
lea edi, [esp + 0x90]
mov dword [esp + 0x8c], eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x30], eax
push ecx
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp eax, 0x5c
jne 0x413805
lea edx, [esp + 0x8c]
mov dword [esp + 0x9c], 0x2bc
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov edi, eax
jmp 0x413809
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x41381c
cmp eax, edi
je 0x41381c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
push ebp
mov dword [esp + 0x60], edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x40]
jmp 0x41383c
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x18], ecx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x1c], edx
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
sub ecx, eax
cmp edx, ecx
jne 0x4138ca
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub edx, ecx
cmp dword [esp + 0x28], edx
jne 0x4138ca
push 0
push ecx
mov ecx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x30]
push ebp
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
push 0
lea edx, [esp + 0x18]
push 0xfffffffffffffffb
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push 0x25
push eax
push 0xffffffffffffffff
push ecx
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x413da1
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
mov dword [esp + 0x88], edi
push edi
call dword [sym.imp.GDI32.dll_SaveDC]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
push eax
sub ecx, edx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x88], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 8]
push 0
push 0
push 0
push edi
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x34]
shr edx, 1
test dl, 1
je 0x413a17
mov ecx, dword [esp + 0x2c]
mov eax, 0x55555556
imul ecx
mov eax, edx
mov ecx, dword [esp + 0x18]
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x20]
mov esi, edx
mov edx, dword [esp + 0x28]
push 0xcc0020
push edx
push esi
push 0
sub eax, ecx
push 0
push edi
push eax
mov eax, dword [esp + 0x30]
push esi
push ecx
push eax
push ebp
call ebx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0xcc0020
push ebx
sub eax, esi
push esi
push 0
mov ebx, dword [sym.imp.GDI32.dll_StretchBlt]
sub ecx, edx
mov edx, dword [esp + 0x2c]
push eax
push edi
push ecx
mov ecx, dword [esp + 0x34]
sub edx, esi
push esi
push ecx
push edx
push ebp
call ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sub ecx, edx
lea edx, [esi + esi]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x1c]
sub ecx, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
add esi, edx
mov edx, dword [esp + 0x28]
push 0xcc0020
push edx
push 1
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x44]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push esi
push ebp
call ebx
push 0
lea edx, [esp + 0x18]
push 0xfffffffffffffffb
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x14]
push 0x25
push ecx
push 0xffffffffffffffff
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x413d6f
mov ecx, dword [esp + 0x28]
mov eax, 0x55555556
imul ecx
mov eax, edx
mov ecx, dword [esp + 0x14]
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x1c]
mov esi, edx
mov edx, dword [esp + 0x2c]
push 0xcc0020
push esi
push edx
push 0
push 0
sub eax, ecx
push edi
push esi
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
push ebp
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x20]
push 0xcc0020
sub edx, esi
sub eax, esi
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x30]
push esi
push edx
push eax
mov eax, dword [esp + 0x40]
push 0
push edi
push esi
push ecx
mov ecx, dword [esp + 0x34]
push eax
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
cdq
sub eax, edx
lea edx, [esi + esi]
sar eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
sub ecx, edx
mov edx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esp + 0x18]
add esi, edx
mov edx, dword [esp + 0x2c]
push 0xcc0020
push 1
push edx
mov edx, dword [esp + 0x3c]
push edx
push 0
push edi
push ecx
push eax
mov eax, dword [esp + 0x34]
push esi
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
mov eax, dword [0x43e040]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x68]
mov ecx, 0x4429ac
test ecx, ecx
mov esi, dword [edx + 4]
mov byte [esp + 0xf0], 4
je 0x413b25
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
lea ecx, [esp + 0x38]
push edx
mov dword [esp + 0x28], eax
call fcn.00404640
test eax, eax
je 0x413b5c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
inc eax
push eax
push 0x4429ac
push ecx
call fcn.004145b0
add esp, 0xc
lea ecx, [esp + 0x38]
push 0xffffffffffffffff
call fcn.004144b0
push esi
lea ecx, [esp + 0x38]
call fcn.00410fd0
push esi
lea ecx, [esp + 0x40]
call fcn.00413df0
xor esi, esi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x413b81
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp esi, eax
jge 0x413c35
push 0x4429ac
lea ecx, [esp + 0x68]
call fcn.00414170
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x38]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0x64]
test eax, eax
setne byte [esp + 0x13]
call fcn.00402b20
mov al, byte [esp + 0x13]
test al, al
je 0x413bf7
push 0x43e604
lea ecx, [esp + 0x64]
call fcn.00414170
lea ecx, [esp + 0x60]
mov byte [esp + 0xf0], 5
push ecx
lea ecx, [esp + 0x3c]
call fcn.004142c0
lea ecx, [esp + 0x60]
mov byte [esp + 0xf0], 4
call fcn.00402b20
lea edx, [esp + 0x84]
push esi
push edx
lea ecx, [esp + 0x3c]
call fcn.00413e80
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xf4], 6
call fcn.004142c0
lea ecx, [esp + 0x84]
mov byte [esp + 0xf0], 4
call fcn.00402b20
inc esi
jmp 0x413b72
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x34]
push eax
call fcn.004140a0
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push 0x400
push ecx
push 0xffffffffffffffff
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x5c]
mov ecx, dword [0x43e044]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x413c88
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413c88
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff4
push eax
call fcn.0042329e
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
sub eax, edx
mov esi, dword [esp + 0x48]
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
mov ecx, eax
mov eax, dword [esp + 0x1c]
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x44]
sar eax, 1
sar ecx, 1
add eax, edx
add ecx, esi
mov esi, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
sub esi, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x48], ecx
add edx, esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x4c], edx
mov edx, ecx
sub edx, eax
lea eax, [esp + 0x6c]
add esi, edx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], esi
call fcn.004140a0
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push 1
push ecx
push 0xffffffffffffffff
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x6c]
mov ecx, dword [0x43e044]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x413d2c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413d2c
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff4
push eax
call fcn.0042329e
add esp, 4
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x38]
mov ecx, dword [0x43e044]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x413d66
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413d66
mov eax, dword [esp + 0x38]
add eax, 0xfffffff4
push eax
call fcn.0042329e
add esp, 4
lea ecx, [esp + 0x34]
call fcn.00402b20
push 0xffffffffffffffff
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x413d8a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test edi, edi
mov byte [esp + 0xf0], 1
je 0x413d9d
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x54]
mov eax, dword [edi + 0x24]
inc ecx
cmp ecx, eax
mov dword [esp + 0x54], ecx
jl 0x4136bf
mov esi, dword [esp + 0x58]
xor ebx, ebx
push 0xffffffffffffffff
push ebp
call dword [sym.imp.GDI32.dll_RestoreDC]
cmp esi, ebx
je 0x413dcf
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0xe8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe4
ret 4