Function at 0x40ed10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468de8
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x487304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10c], 0
cmp edi, 0x112
ja 0x40ef22
je 0x40ee46
mov eax, edi
sub eax, 1
je 0x40ed88
sub eax, 0x83
jne 0x40ef30
push ecx
push dword [ebp + 0x10]
sub esp, 8
call fcn.00403aa0
mov dword [ebp - 0x10c], eax
jmp 0x40eff2
push 0xfffffffffffffff0
call fcn.00403480
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xff3fffff
mov ecx, ebx
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.00403480
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [ebx + 4]
lea esi, [ebx + 0x14]
mov ecx, esi
call fcn.0043095a
lea ecx, [ebp - 0x108]
call fcn.0043339a
push 0
push esi
push 0
push 0
push ecx
mov eax, esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x108]
mov dword [eax], str.Plugin.xml
call fcn.00433f97
push eax
mov ecx, esi
call fcn.004302d7
mov edx, ebx
lea eax, [ebx + 0x10]
neg edx
mov ecx, esi
sbb edx, edx
and edx, eax
push edx
call fcn.004301ff
mov ecx, ebx
call fcn.0042f205
push str.install_progress
mov ecx, esi
call fcn.0043043c
push 0
push 0
push 0xbd7
mov ecx, ebx
mov dword [ebx + 0x2c0], eax
call fcn.0042f5d9
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], 0xffffffff
call fcn.00434dc7
jmp 0x40eff2
cmp dword [ebp + 0xc], 0xf060
jne 0x40ee64
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor edi, edi
mov dword [ebp - 0x10c], edi
jmp 0x40eff2
call fcn.00403480
mov esi, dword [sym.imp.USER32.dll_IsZoomed]
push eax
call esi
push dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x114], eax
push dword [ebp + 0xc]
push edi
call fcn.0042f4b4
mov ecx, ebx
mov edi, eax
call fcn.00403480
push eax
call esi
mov ecx, dword [ebp - 0x114]
cmp eax, ecx
je 0x40ef17
add ebx, 0x14
test ecx, ecx
push str.box_btn_max
mov ecx, ebx
jne 0x40eee6
call fcn.0043043c
test eax, eax
je 0x40eebf
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 0xcc]
push str.box_btn_restore
mov ecx, ebx
call fcn.0043043c
test eax, eax
je 0x40ef17
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xcc]
mov dword [ebp - 0x10c], edi
jmp 0x40eff2
call fcn.0043043c
test eax, eax
je 0x40eefb
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xcc]
push str.box_btn_restore
mov ecx, ebx
call fcn.0043043c
test eax, eax
je 0x40ef17
mov edx, dword [eax]
mov ecx, eax
push 0
call dword [edx + 0xcc]
mov dword [ebp - 0x10c], edi
jmp 0x40eff2
mov eax, edi
sub eax, 0xbd1
je 0x40ef90
sub eax, 6
je 0x40ef60
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp + 0xc]
lea ecx, [ebx + 0x14]
push edi
call fcn.00430b4e
test al, al
jne 0x40eff2
push esi
push dword [ebp + 0xc]
mov ecx, ebx
push edi
call fcn.0042f4b4
jmp 0x40eff8
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0
push eax
push 0
push 0
push 0x40f100
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40eff2
cmp dword [ebx + 0x2c0], 0
je 0x40eff2
lea ecx, [ebp - 0x58]
call fcn.0042e48f
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push edi
push str._d__
push eax
mov dword [ebp - 4], 1
call fcn.0042eb1f
mov eax, dword [ebx + 0x2c0]
lea ecx, [ebp - 0x58]
add esp, 0xc
mov esi, dword [eax]
call fcn.0042e701
mov ecx, dword [ebx + 0x2c0]
push eax
call dword [esi + 0x2c]
mov ecx, dword [ebx + 0x2c0]
push edi
call fcn.00444752
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e585
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004662d8
mov esp, ebp
pop ebp
ret 0xc