Function at 0x40e230
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ee90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x24], esi
call dword [0x437098]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4428b4]
xor ebx, ebx
cmp eax, ebx
jne 0x40e271
push 0x80004003
call fcn.00424e90
mov eax, dword [0x4428b4]
mov edi, dword [esi + 0x8e8]
mov dword [ebp - 0x28], eax
call dword [0x437098]
cmp edi, ebx
je 0x40e2e5
call dword [0x437098]
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi - 1]
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x40e2dd
mov ecx, dword [ebp - 0x2c]
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40e2dd
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x30]
call fcn.00403a80
xor ebx, ebx
jmp 0x40e2e5
lea ecx, [ebp - 0x30]
call fcn.00403a80
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
lea ecx, [ebp - 0x70]
push ecx
push 0xa
push ebx
push eax
call dword [edx + 0x38]
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov edx, dword [ebp - 0x68]
xor edi, edi
push edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edi
call fcn.0040dc50
cmp eax, edi
jge 0x40e31f
cmp eax, 0x80004002
je 0x40e31f
push eax
call fcn.00424e90
mov esi, dword [ebp - 0x30]
cmp esi, edi
je 0x40e337
mov eax, dword [esi]
mov ebx, esi
push esi
mov dword [ebp - 0x34], ebx
call dword [eax + 4]
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, dword [0x437070]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], eax
cmp ebx, edi
mov byte [ebp - 4], 3
jne 0x40e35d
push 0x80004003
call fcn.00424e90
mov edx, dword [ebx]
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [edx + 0x2c]
mov ecx, dword [ebx]
lea edx, [ebp - 0xf]
push edx
push ebx
call dword [ecx + 0x34]
mov eax, dword [ebx]
lea ecx, [ebp - 0xd]
push ecx
push ebx
call dword [eax + 0x3c]
mov al, byte [ebp - 0xd]
xor edx, edx
cmp al, 0x59
mov eax, dword [ebx]
sete dl
lea ecx, [ebp - 0xe]
push ecx
push ebx
mov dword [ebp - 0x48], edx
call dword [eax + 0x44]
mov al, byte [ebp - 0xe]
xor edx, edx
cmp al, 0x59
mov eax, dword [ebx]
sete dl
lea ecx, [ebp - 0x38]
push ecx
push ebx
mov dword [ebp - 0x4c], edx
call dword [eax + 0x4c]
mov eax, dword [ebp - 0x38]
cmp eax, edi
mov dword [ebp - 0x1c], eax
jne 0x40e3ba
xor esi, esi
mov dword [ebp - 0x1c], edi
jmp 0x40e40c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00425d90
mov esi, esp
test esi, esi
je 0x40e3f7
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push edx
push 0
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40e400
xor esi, esi
xor edi, edi
mov dword [ebp - 0x1c], edi
jmp 0x40e40c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1c], eax
mov edi, eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00401300
test eax, eax
je 0x40e438
mov eax, dword [ebp - 0x14]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov dword [eax - 8], ecx
mov byte [ecx + eax], 0
mov eax, dword [ebx]
lea ecx, [ebp - 0x3c]
push ecx
push ebx
call dword [eax + 0x54]
mov eax, dword [ebp - 0x3c]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x40e489
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00425d90
mov esi, esp
test esi, esi
je 0x40e489
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push edx
push 0
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40e492
xor esi, esi
xor edi, edi
mov dword [ebp - 0x1c], edi
jmp 0x40e49e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x1c], eax
mov edi, eax
push edi
lea ecx, [ebp - 0x18]
call fcn.00401300
test eax, eax
je 0x40e4ca
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov dword [eax - 8], ecx
mov byte [ecx + eax], 0
mov eax, dword [ebx]
lea ecx, [ebp - 0x40]
push ecx
push ebx
call dword [eax + 0x5c]
mov eax, dword [ebp - 0x40]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x40e51f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00425d90
mov esi, esp
test esi, esi
je 0x40e51f
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push edx
push 0
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40e521
xor eax, eax
push eax
call fcn.00425509
mov ecx, dword [ebx]
add esp, 4
lea edx, [ebp - 0x44]
push edx
push ebx
mov dword [ebp - 0x50], eax
call dword [ecx + 0x64]
mov eax, dword [ebp - 0x44]
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x40e57e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00425d90
mov esi, esp
test esi, esi
je 0x40e57e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push ecx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40e587
xor esi, esi
xor edi, edi
mov dword [ebp - 0x20], edi
jmp 0x40e593
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x20], eax
mov edi, eax
push edi
lea ecx, [ebp - 0x30]
call fcn.00401300
test eax, eax
je 0x40e5bf
mov eax, dword [ebp - 0x30]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
mov dword [eax - 8], ecx
mov byte [ecx + eax], 0
mov esi, dword [ebp - 0x18]
mov eax, dword [esi - 8]
test eax, eax
jl 0x40e693
push 0x431040
push esi
call fcn.00426023
add esp, 8
test eax, eax
je 0x40e693
sub eax, esi
mov esi, eax
cmp esi, 0xffffffff
je 0x40e693
push esi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d900
mov eax, dword [eax]
push eax
call fcn.00425509
mov edx, dword [0x437074]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
lea ecx, [eax - 0xc]
add esp, 4
cmp ecx, edx
je 0x40e638
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e638
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff4
push eax
call fcn.004258ee
add esp, 4
inc esi
push esi
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040dec0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00401390
mov eax, dword [ebp - 0x28]
mov edx, dword [0x437074]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [ebp - 4], 3
je 0x40e684
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e684
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff4
push eax
call fcn.004258ee
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call fcn.00425509
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 8]
test eax, eax
jl 0x40e776
push 0x43103c
push edi
call fcn.00426023
add esp, 8
test eax, eax
je 0x40e776
sub eax, edi
mov edi, eax
cmp edi, 0xffffffff
je 0x40e773
push edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040d900
mov eax, dword [eax]
push eax
call fcn.00425509
mov edx, dword [0x437074]
mov esi, eax
add esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 0xc]
add esp, 4
cmp ecx, edx
je 0x40e70e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e70e
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
push eax
call fcn.004258ee
add esp, 4
inc edi
push edi
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040dec0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00401390
mov eax, dword [ebp - 0x20]
mov edx, dword [0x437074]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [ebp - 4], 3
je 0x40e75a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e75a
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
push eax
call fcn.004258ee
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.00425509
mov edx, dword [ebp - 0x28]
add esp, 4
add eax, edx
test esi, esi
jne 0x40e7b7
test eax, eax
jne 0x40e7b7
mov edi, dword [ebp - 0x14]
push 0
lea eax, [ebp - 0x60]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov esi, dword [ebp - 0x24]
push 0x2d8
push 0x12c
add esi, 0x8c
push 0x12d
push 0
mov ecx, esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0x12d
call fcn.0041c9b0
jmp 0x40e7e0
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
lea ecx, [eax + 0x1ab]
push ecx
mov ecx, dword [ebp - 0x2c]
lea edx, [ecx + 0x12c]
push edx
push eax
add esi, 0x8c
push ecx
mov ecx, esi
call fcn.0041c9b0
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x48]
xor eax, eax
test edx, edx
setne al
mov ecx, esi
push eax
call fcn.0041a0c0
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
test eax, eax
setne cl
push ecx
mov ecx, esi
call fcn.0041a0f0
mov eax, dword [ebp - 0x50]
cmp eax, 0x14
mov ecx, esi
jge 0x40e812
push 0x64
jmp 0x40e813
push eax
call fcn.0041aa30
cmp byte [ebp - 0xf], 0x4e
mov esi, dword [ebp - 0x24]
jne 0x40e874
mov edx, dword [esi + 0x90]
push 0
push edx
mov byte [esi + 0x8d8], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov ecx, dword [esi + 0x8f0]
test ecx, ecx
je 0x40e8a3
call fcn.0040c8c0
mov ecx, dword [esi + 0x8f0]
test ecx, ecx
je 0x40e868
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x8f0], 0
jmp 0x40e8a3
mov ecx, dword [esi + 0x90]
push ecx
mov byte [esi + 0x8d8], 1
call fcn.0040c050
mov edx, dword [esi + 0x90]
add esp, 4
push 0x53
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x30]
mov edx, dword [0x437074]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40e8ca
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e8ca
push esi
call fcn.004258ee
add esp, 4
mov esi, dword [ebp - 0x18]
mov eax, dword [0x437074]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x40e8f0
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e8f0
push esi
call fcn.004258ee
add esp, 4
mov ecx, dword [0x437074]
lea eax, [edi - 0xc]
cmp eax, ecx
je 0x40e914
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40e914
push esi
call fcn.004258ee
add esp, 4
mov ecx, dword [ebx]
push ebx
mov dword [ebp - 4], 0xffffffff
call dword [ecx + 8]
mov eax, 1
lea esp, [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret