Function at 0x40b310
Capabilities:
Create thread
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b892
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x45d274]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp dword [0x4605a0], esi
je 0x40b62c
mov ebx, dword [edi + 0xe8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
cmp dword [ebx + 0x64], esi
je 0x40b36e
mov eax, dword [ebx + 4]
push esi
push 0x9a
push 0x4ec
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x4605a0], esi
je 0x40b648
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push ebx
call fcn.00418000
mov eax, dword [ebp - 0x10]
cmp eax, 0x82
jne 0x40b3d9
push 0x1b4
call fcn.0042ef2f
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x40b3b2
push ebx
push eax
call fcn.0041a4a0
jmp 0x40b3b4
xor eax, eax
push eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x460598]
push 0x414c70
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
push eax
push 0x82
push ecx
jmp 0x40b5cb
cmp eax, 0x88
jne 0x40b434
push 0x210
call fcn.0042ef2f
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
cmp eax, esi
je 0x40b40d
mov edx, dword [ebp - 0x14]
push edx
push 0x9a
push ebx
push eax
call fcn.00417090
jmp 0x40b40f
xor eax, eax
push eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x460598]
push 0x414c70
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
push eax
push 0x88
push ecx
jmp 0x40b5cb
cmp eax, 0x84
jne 0x40b4cc
push 0x2e0
call fcn.0042ef2f
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
cmp eax, esi
je 0x40b462
push eax
call fcn.00416110
jmp 0x40b464
xor eax, eax
push eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx + 4]
push 0x414c70
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [0x460598]
push 0x84
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov edi, dword [ebx + 0x50]
add edi, 0x7c
mov dword [ebx + 0x54], 1
call fcn.00421f50
cmp dword [edi + 4], esi
jne 0x40b4b3
push esi
push esi
push edi
push 0x421d30
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
call fcn.00424000
mov esi, dword [ebx + 0x50]
lea eax, [ebx + 0x44]
push 1
call fcn.0041f050
xor esi, esi
jmp 0x40b5d1
cmp eax, 0x85
jne 0x40b525
push 0x1b4
mov dword [ebx + 0x58], 1
call fcn.0042ef2f
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
cmp eax, esi
je 0x40b4fe
push ebx
push eax
call fcn.00415770
jmp 0x40b500
xor eax, eax
push eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 4]
mov edx, dword [0x460598]
push 0x414c70
push ecx
push 0x85
mov dword [ebp - 0x10], eax
push edx
jmp 0x40b5cb
cmp eax, 0x86
jne 0x40b574
push 0x338
call fcn.0042ef2f
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 4
cmp eax, esi
je 0x40b550
push ebx
push eax
call fcn.00419750
jmp 0x40b552
xor eax, eax
push eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x460598]
push 0x414c70
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
push eax
push 0x86
push ecx
jmp 0x40b5cb
cmp eax, 0x9a
jne 0x40b648
push 0x240
mov dword [ebx + 0x58], 1
call fcn.0042ef2f
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 5
cmp eax, esi
je 0x40b5aa
push ebx
push eax
call fcn.0040ac50
jmp 0x40b5ac
xor eax, eax
push eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx + 4]
push 0x414c70
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [0x460598]
push 0x9a
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x40b648
mov ecx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ecx
call edi
mov eax, dword [ebx + 0x64]
cmp eax, esi
je 0x40b5f4
mov edx, dword [eax + 4]
push esi
push edx
call edi
mov eax, dword [ebx + 0x64]
cmp eax, esi
je 0x40b614
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebx + 0x64]
cmp ecx, esi
je 0x40b614
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x64], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov edx, dword [edi + 0xe8]
mov eax, dword [edx + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret