Function at 0x417db0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ecx
push edi
push ebx
mov dword [esp + 0x18], 0
lea ebp, [esi + 0x1b88]
mov ecx, ebp
call fcn.00431aa0
lea ecx, [esi + 0x2858]
call fcn.00451140
mov ecx, ebp
call fcn.0042d8d0
mov eax, dword [0x4f83ec]
mov ecx, dword fs:[0x2c]
mov edi, dword [ecx + eax*4]
mov cl, byte [ebx + 0x224]
mov al, byte [edi + 0x22c]
cmp al, cl
je 0x417e75
cmp dword [edi + 0x280], 3
jne 0x417e75
test al, al
je 0x417e1a
mov ecx, ebp
call fcn.0042ed40
jmp 0x417e75
lea edx, [edi + 0x278]
xor ebx, ebx
mov dword [esp + 0x10], edx
lea ebp, [edi + 0x240]
mov dword [esp + 0x18], 7
mov eax, dword [esp + 0x10]
cmp byte [eax], 0
je 0x417e5a
mov edx, dword [esi + 0xd0]
xor ecx, ecx
mov cx, word [ebp]
mov eax, ebx
push ecx
push eax
push 0x101e
push edx
inc ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc edx
add ebp, 4
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
jne 0x417e34
mov ebx, dword [esp + 0x24]
mov al, byte [edi + 0x2a3]
mov ebp, dword [esi + 0x170]
test al, al
je 0x417e98
lea ecx, [esi + 0x1b88]
call fcn.004303f0
test eax, eax
je 0x417e98
xor eax, eax
jmp 0x417ea0
xor eax, eax
mov al, byte [esi + 0xc6]
cmp ebp, eax
mov dword [esi + 0x170], eax
je 0x417eb6
push eax
lea ecx, [esi + 0x2858]
call fcn.0045b140
lea eax, [esi + 0x17b8]
test eax, eax
je 0x417ec3
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x170]
neg ecx
sbb ecx, ecx
and ecx, 8
push ecx
push 0x4f11
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov dl, byte [edi + 0x52b]
mov al, byte [ebx + 0x523]
cmp dl, al
jne 0x417f0d
mov al, byte [edi + 0x52a]
mov cl, byte [ebx + 0x522]
cmp al, cl
jne 0x417f0d
mov cl, byte [edi + 0x529]
mov al, byte [ebx + 0x521]
cmp cl, al
je 0x417f36
mov edx, dword [esi + 0xd0]
push 0
push 0
push 0xb
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ebp, [esi + 0x1b88]
mov ecx, ebp
call fcn.00430420
push 0
mov ecx, ebp
call fcn.0042d6a0
mov eax, dword [edi + 0x2ac]
mov ecx, dword [ebx + 0x2a4]
cmp eax, ecx
jne 0x417f89
mov ecx, dword [edi + 0x2b0]
mov eax, dword [ebx + 0x2a8]
cmp ecx, eax
jne 0x417f89
fld qword [edi + 0x510]
fcomp qword [ebx + 0x508]
fnstsw ax
test ah, 0x40
je 0x417f89
mov dl, byte [edi + 0x508]
mov al, byte [ebx + 0x500]
cmp dl, al
jne 0x417f89
mov al, byte [edi + 0x2c8]
mov cl, byte [ebx + 0x2c0]
cmp al, cl
je 0x417fb4
lea ebp, [esi + 0x2858]
mov ecx, ebp
call fcn.00451140
mov ecx, ebp
call fcn.004516e0
test eax, eax
je 0x417fb4
mov eax, dword [esi + 0x170]
test eax, eax
je 0x417fb4
push 1
mov ecx, esi
call fcn.00412760
mov cl, byte [edi + 0x508]
mov al, byte [ebx + 0x500]
cmp cl, al
jne 0x417fd7
fld qword [edi + 0x510]
fcomp qword [ebx + 0x508]
fnstsw ax
test ah, 0x40
jne 0x41802c
mov edx, dword [esi + 0xf4]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov al, byte [edi + 0x508]
test al, al
je 0x418004
mov eax, dword [edi + 0x510]
mov ecx, dword [edi + 0x514]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x418014
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x3ff00000
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00483170
add esp, 8
mov dword [esi + 0xf4], eax
mov ecx, dword [edi + 0x518]
mov eax, dword [ebx + 0x510]
cmp ecx, eax
je 0x4180a0
mov edx, dword [esi + 0xd0]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push edx
call ebp
xor eax, 0x200
push eax
mov eax, dword [esi + 0xd0]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esi + 0xd8]
push 0xfffffffffffffff0
push ecx
call ebp
mov edx, dword [esi + 0xd8]
xor eax, 0x200
push eax
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0xd4]
push 0xfffffffffffffff0
push eax
call ebp
mov ecx, dword [esi + 0xd4]
xor eax, 8
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dl, byte [edi + 0xc]
mov al, byte [ebx + 4]
cmp dl, al
je 0x4180b5
mov dword [esp + 0x14], 1
mov al, byte [edi + 0x52d]
mov cl, byte [ebx + 0x525]
cmp al, cl
je 0x4180cd
mov dword [esp + 0x14], 1
mov ecx, dword [ebx + 0x22c]
mov eax, dword [edi + 0x234]
cmp ecx, eax
jne 0x41811d
mov edx, dword [ebx + 0x230]
mov eax, dword [edi + 0x238]
cmp edx, eax
jne 0x41811d
mov eax, dword [ebx + 0x234]
mov ecx, dword [edi + 0x23c]
cmp eax, ecx
jne 0x41811d
mov cl, byte [ebx + 0x2c9]
mov al, byte [edi + 0x2d1]
cmp cl, al
jne 0x41811d
mov dl, byte [ebx + 0x2c8]
mov al, byte [edi + 0x2d0]
cmp dl, al
je 0x418145
lea ebp, [esi + 0x1b88]
push 1
mov ecx, ebp
call fcn.0042d6a0
mov ecx, ebp
call fcn.004303f0
test eax, eax
je 0x418145
mov ecx, ebp
call fcn.004303b0
mov ecx, ebp
call fcn.00430420
mov al, byte [edi + 0x2d3]
mov cl, byte [ebx + 0x2cb]
cmp al, cl
je 0x41816d
lea ecx, [esi + 0x2858]
call fcn.004516e0
test eax, eax
je 0x41816d
push 1
mov ecx, esi
call fcn.00412760
mov al, byte [edi + 0x2ca]
mov cl, byte [ebx + 0x2c2]
cmp al, cl
je 0x41829c
test al, al
je 0x418226
mov ecx, dword [esi + 0x14c]
xor ebp, ebp
cmp ecx, ebp
mov dword [esi + 0x16c], ebp
je 0x418275
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x418275
cmp dword [esi + 0x140], ebp
je 0x4181fb
mov eax, dword [esi + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x140]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4181e2
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov edx, dword [esi + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov dword [esi + 0x140], ebp
cmp eax, ebp
jne 0x418275
mov eax, dword [esi + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 0x24]
push ecx
push ebp
push esi
push 0x40c360
push ebp
push ebp
call fcn.004a899b
add esp, 0x18
mov dword [esi + 0x140], eax
jmp 0x418275
mov eax, dword [esi + 0x140]
test eax, eax
je 0x418275
mov edx, dword [esi + 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x140]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41825e
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [esi + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x140], 0
lea eax, [esi + 0x17b8]
test eax, eax
je 0x418282
mov eax, dword [eax + 4]
mov dl, byte [edi + 0x2ca]
neg dl
sbb edx, edx
and edx, 8
push edx
push 0x4f20
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
lea eax, [ebx + 0x3e8]
lea ebp, [edi + 0x3f0]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4182da
mov ecx, 0x4f5850
call fcn.0043bd40
push ebp
mov ecx, 0x4f5850
call fcn.0043ba90
mov ecx, dword [esi + 0x1ba4]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
xor edx, edx
lea ecx, [esi + 0x1844]
mov dl, byte [edi + 0x4fc]
push edx
call fcn.004bc435
xor eax, eax
lea ecx, [esi + 0x1910]
mov al, byte [edi + 0x4fc]
push eax
call fcn.004bc435
mov ecx, esi
call fcn.00417c60
mov al, byte [edi + 0xd]
test al, al
je 0x418323
mov al, byte [ebx + 5]
test al, al
jne 0x418323
push 0
mov ecx, esi
call fcn.00412760
lea edi, [esi + 0x1b88]
push 1
mov ecx, edi
call fcn.0042e460
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41835d
mov edx, dword [esi + 0x2548]
lea ebx, [esi + 0x2548]
mov ecx, ebx
call dword [edx + 0xc8]
test eax, eax
je 0x41835d
push 1
push 0
mov ecx, ebx
call fcn.00434c10
mov ecx, edi
call fcn.0042d4d0
mov ecx, esi
call fcn.004141d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4