Function at 0x40e230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f211
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x45407c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ecx
push ecx
push ecx
push edx
lea esi, [ebx + 4]
push 0x4b
add eax, 8
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push ecx
push 0x50000000
push ecx
push str.Static
push ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x4b
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
push esi
push 0xffffffffffffffeb
push eax
mov dword [esi], eax
call edi
mov eax, dword [esi]
push 0x404c10
push 0xfffffffffffffffc
push eax
call edi
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], 0
push 0x18
mov dword [ebx], vtable.SettingsComposite.0
mov dword [ebx + 0x30], eax
call fcn.00427771
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp edi, ecx
je 0x40e3b7
mov dword [ebp - 0x10], ecx
mov eax, 0x448aba
jmp 0x40e2f0
movzx edx, word [eax - 2]
shl ecx, 5
sub ecx, dword [ebp - 0x10]
add eax, 0xa
add edx, ecx
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax - 0xa]
add ecx, edx
mov edx, ecx
shl edx, 5
sub edx, ecx
movzx ecx, word [eax - 8]
add edx, ecx
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax - 6]
add ecx, edx
mov edx, ecx
shl edx, 5
sub edx, ecx
movzx ecx, word [eax - 4]
add ecx, edx
mov dword [ebp - 0x10], ecx
cmp eax, str.OPEN_TORRENT_VIA_ZONA
jl 0x40e2f0
mov eax, dword [ebp + 8]
add eax, 0x264
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
call fcn.00405250
mov edx, dword [eax]
test edx, edx
jne 0x40e35b
mov edx, 0x448ab8
mov eax, dword [esi]
mov ecx, dword [ebx + 8]
push 0
push 0
push 0
push eax
push 0x19
mov dword [ebp - 0x10], ecx
mov dword [edi + 4], ecx
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0x50000003
push edx
push str.Button
push 0
mov dword [edi + 8], ecx
mov dword [edi + 0xc], 0x19
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, dword [ebp - 0x10]
push 1
mov dword [edi], eax
mov ecx, dword [edx]
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40e3b9
xor edi, edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x24], edi
mov al, byte [eax + 1]
mov edi, dword [edi]
xor ecx, ecx
test al, al
setne cl
push 0
push ecx
push 0xf1
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x18
call fcn.00427771
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x40e4be
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, 0x448aee
lea esp, [esp]
movzx edx, word [ecx - 2]
shl eax, 5
sub eax, dword [ebp - 0x10]
add ecx, 6
add edx, eax
mov eax, edx
shl eax, 5
sub eax, edx
movzx edx, word [ecx - 6]
add eax, edx
mov edx, eax
shl edx, 5
sub edx, eax
movzx eax, word [ecx - 4]
add eax, edx
mov dword [ebp - 0x10], eax
cmp ecx, str.ADD_FIREWALL_EXCEPTION
jl 0x40e410
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
add eax, 0x264
lea edx, [ebp - 0x10]
call fcn.00405250
mov edx, dword [eax]
test edx, edx
jne 0x40e462
mov edx, str.OPEN_TORRENT_VIA_ZONA
mov eax, dword [esi]
mov ecx, dword [ebx + 8]
push 0
push 0
push 0
push eax
push 0x19
mov dword [ebp - 0x10], ecx
mov dword [edi + 4], ecx
mov ecx, dword [ebp + 0xc]
push ecx
push 0x19
push 0
push 0x50000003
push edx
push str.Button
push 0
mov dword [edi + 8], ecx
mov dword [edi + 0xc], 0x19
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x19
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 0x10]
push 1
mov dword [edi], eax
mov ecx, dword [ecx]
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40e4c0
xor edi, edi
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x28], edi
mov al, byte [edx + 2]
mov edi, dword [edi]
xor ecx, ecx
test al, al
setne cl
push 0
push ecx
push 0xf1
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x18
call fcn.00427771
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 2
test edi, edi
je 0x40e5ab
xor edx, edx
mov dword [ebp - 0x10], edx
mov ecx, 0x448b1a
movzx eax, word [ecx - 2]
shl edx, 5
sub edx, dword [ebp - 0x10]
add ecx, 4
add eax, edx
mov edx, eax
shl edx, 5
sub edx, eax
movzx eax, word [ecx - 4]
add edx, eax
mov dword [ebp - 0x10], edx
cmp ecx, 0x448b46
jl 0x40e510
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edx
add eax, 0x264
lea edx, [ebp - 0x10]
call fcn.00405250
mov edx, dword [eax]
test edx, edx
jne 0x40e555
mov edx, str.ADD_FIREWALL_EXCEPTION
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebx + 8]
push 0
push 0
push 0
push eax
push 0x19
push ecx
push 0x32
push 0
push 0x50000003
push edx
push str.Button
push 0
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], 0x19
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x32
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
mov dword [edi], eax
mov ecx, dword [esi]
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40e5ad
xor edi, edi
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [ebx + 0x2c], edi
cmp byte [eax + 3], dl
mov ecx, dword [edi]
setne dl
push 0
push edx
push 0xf1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x1c], ebx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc