Function at 0x409130
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x457450]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push esi
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x45c320]
push eax
call fcn.0040c540
mov ebx, eax
call fcn.0040c4d0
mov ecx, dword [esi + 4]
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 4]
or eax, 0x10000
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x20]
push eax
push ecx
call ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub eax, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
push eax
lea edi, [esi + 0x24]
call fcn.0040b190
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push 1
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [esi + 0x6c], 0
lea ebx, [esi + 0x64]
jne 0x409220
test ebx, ebx
je 0x409208
lea eax, [ebx - 0x64]
jmp 0x40920a
xor eax, eax
mov edx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x45c
push edx
call edi
mov dword [esi + 0x6c], eax
jmp 0x409226
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
test ebx, ebx
je 0x40922f
lea eax, [ebx - 0x64]
jmp 0x409231
xor eax, eax
mov eax, dword [eax + 4]
push 0x44f
push eax
call edi
mov ebx, eax
mov dword [esp + 0x14], 0
push 0
push 0
push 0x87
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 0x40
je 0x409279
mov edx, dword [esp + 0x14]
xor ecx, ecx
cmp edx, dword [esi + 0x70]
push 0
sete cl
push ecx
push 0xf1
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [esp + 0x14]
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
je 0x409298
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000
je 0x409246
cmp dword [esi + 0x74], 0
jne 0x4092ba
lea eax, [esi + 0x64]
test eax, eax
je 0x4092aa
add eax, 0xffffff9c
jmp 0x4092ac
xor eax, eax
mov eax, dword [eax + 4]
push 0x452
push eax
call edi
mov dword [esi + 0x74], eax
cmp dword [esi + 0x78], 0
jne 0x4092dc
lea eax, [esi + 0x64]
test eax, eax
je 0x4092cc
add eax, 0xffffff9c
jmp 0x4092ce
xor eax, eax
mov ecx, dword [eax + 4]
push 0x453
push ecx
call edi
mov dword [esi + 0x78], eax
cmp dword [esi + 0x7c], 0
jne 0x4092fe
lea eax, [esi + 0x64]
test eax, eax
je 0x4092ee
add eax, 0xffffff9c
jmp 0x4092f0
xor eax, eax
mov edx, dword [eax + 4]
push 0x455
push edx
call edi
mov dword [esi + 0x7c], eax
cmp dword [esi + 0x80], 0
jne 0x409326
lea eax, [esi + 0x64]
test eax, eax
je 0x409313
add eax, 0xffffff9c
jmp 0x409315
xor eax, eax
mov eax, dword [eax + 4]
push 0x464
push eax
call edi
mov dword [esi + 0x80], eax
cmp dword [esi + 0x84], 0
jne 0x40934e
lea eax, [esi + 0x64]
test eax, eax
je 0x40933b
add eax, 0xffffff9c
jmp 0x40933d
xor eax, eax
mov ecx, dword [eax + 4]
push 0x454
push ecx
call edi
mov dword [esi + 0x84], eax
mov ecx, dword [esi + 0x8c]
mov ebx, 0xa08e
call fcn.00416570
push eax
lea ebx, [esp + 0x18]
call fcn.004027e0
mov edx, ebx
push edx
call fcn.00408bd0
mov ecx, dword [esi + 0x8c]
mov ebx, 0xc79c
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov ebx, dword [eax]
mov eax, dword [esi + 4]
push 0x465
push eax
call edi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc79d
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov edx, dword [esi + 4]
mov ebx, dword [eax]
push 0x466
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc800
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov ecx, dword [esi + 4]
mov ebx, dword [eax]
push 0x467
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc801
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov ebx, dword [eax]
mov eax, dword [esi + 4]
push 0x468
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc802
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov edx, dword [esi + 4]
mov ebx, dword [eax]
push 0x44f
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc808
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov ecx, dword [esi + 4]
mov ebx, dword [eax]
push 0x485
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc803
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov ebx, dword [eax]
mov eax, dword [esi + 4]
push 0x450
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xcb20
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov edx, dword [esi + 4]
mov ebx, dword [eax]
push 0x469
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xcb22
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov ebx, dword [eax]
push 0x470
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xcb21
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov ebx, dword [eax]
mov eax, dword [esi + 4]
push 0x46c
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xcb22
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov edx, dword [esi + 4]
mov ebx, dword [eax]
push 0x46d
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc8c8
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov ecx, dword [esi + 4]
mov ebx, dword [eax]
push 0x46a
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc8c9
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov ebx, dword [eax]
mov eax, dword [esi + 4]
push 0x46b
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xa08c
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov edx, dword [esi + 4]
mov ebx, dword [eax]
push 0x462
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xa08d
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov ecx, dword [esi + 4]
mov ebx, dword [eax]
push 0x463
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push eax
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc8ca
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov eax, dword [eax]
mov ecx, dword [esi + 0x7c]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0x2afe
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov eax, dword [eax]
mov ecx, dword [esi + 0x6c]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc807
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov eax, dword [eax]
mov ecx, dword [esi + 0x74]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00416b1c
mov ecx, dword [esi + 0x8c]
add esp, 4
mov ebx, 0xc805
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov eax, dword [eax]
mov ecx, dword [esi + 0x78]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call fcn.00416b1c
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x84]
add esp, 4
push eax
push ecx
call edi
mov ecx, dword [esi + 0x8c]
mov ebx, 0xa08f
call fcn.00416570
push eax
lea ebx, [esp + 0x14]
call fcn.004027e0
mov edx, dword [eax]
mov eax, dword [esi + 0x80]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00416b1c
mov edx, dword [esi + 0x74]
add esp, 4
push 1
push 0
push 0x160c
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
call fcn.00409e70
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x42a780
push eax
call fcn.00416e78
add esp, 8
test eax, eax
je 0x409830
call fcn.0040a3e0
jmp 0x409835
call fcn.0040a380
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push 0x42a6e8
push 0x80000002
call ebx
test eax, eax
jne 0x4098ba
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x4a]
push edx
mov dword [esp + 0x1c], 0x104
mov word [esp + 0x4c], cx
call fcn.004187b0
mov edx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0x42a738
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4098af
mov eax, dword [esi + 4]
push 0x470
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x40]
push ecx
push eax
call edi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
push 1
push 0
push 0x42a698
push 0x80000002
call ebx
test eax, eax
jne 0x409939
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x4a]
push edx
mov dword [esp + 0x1c], 0x104
mov word [esp + 0x4c], cx
call fcn.004187b0
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0x42a738
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40992e
mov eax, dword [esi + 4]
push 0x46d
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x40]
push ecx
push eax
call edi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, esi
call fcn.00409ff0
mov eax, dword [esp + 0x14]
push eax
call fcn.00416b1c
mov ecx, dword [esp + 0x250]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00416b0d
mov esp, ebp
pop ebp
ret 4