Function at 0x40e4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b1f46
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xc4]
mov ebp, ecx
test edi, 0xffff0000
je 0x40e513
shr edi, 0x10
mov esi, dword [ebp + 4]
xor ebx, ebx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.GIPCConnection.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.0040ebf0
push edi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.GIPCServerConnection.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0040d9c0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], ebx
call dword [eax]
test al, al
je 0x40e5f0
mov eax, dword [esp + 0x1c]
or edi, 0xffffffff
cmp eax, edi
je 0x40e583
mov ecx, dword [esp + 0x14]
push eax
call fcn.00459210
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
call dword [edx]
test al, al
je 0x40e5c3
mov ecx, dword [esp + 0x20]
call fcn.004554b0
mov esi, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40e5b6
mov ecx, dword [esp + 0x14]
push eax
call fcn.00459210
cmp esi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
jg 0x40e63c
mov eax, dword [esp + 0x20]
mov dword [esp + 0xbc], edi
cmp eax, ebx
mov dword [esp + 0x10], vtable.GIPCConnection.0
jne 0x40e5e0
cmp dword [esp + 0x1c], edi
je 0x40e5e9
lea ecx, [esp + 0x10]
call fcn.0040d990
mov al, 1
jmp 0x40eba6
mov edx, dword [0x4fa100]
mov ecx, dword [esp + 0x18]
push ecx
mov eax, dword [edx + 0x3ef4]
push eax
call fcn.00467380
mov ecx, dword [esp + 0x28]
mov bl, al
add esp, 8
or eax, 0xffffffff
test ecx, ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0x10], vtable.GIPCConnection.0
jne 0x40e62c
cmp dword [esp + 0x1c], eax
je 0x40e635
lea ecx, [esp + 0x10]
call fcn.0040d990
mov al, bl
jmp 0x40eba6
mov al, byte [esp + 0xc8]
test al, al
je 0x40eba4
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x44]
push 0x11
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push 0x4d7690
push eax
mov dword [esp + 0x84], 0x3e6fe7ba
call fcn.004625f0
push 0x11
lea ecx, [esp + 0x65]
push 0x4d7690
push ecx
call fcn.004625f0
push 0x11
lea edx, [esp + 0x82]
push 0x4d7690
push edx
call fcn.004625f0
mov eax, dword [esp + 0x34]
add esp, 0x24
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x78], ebx
call dword [eax]
test al, al
jne 0x40e6ba
mov ecx, dword [esp + 0x18]
mov eax, ecx
jmp 0x40e722
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x34]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], 0
mov edx, dword [ecx]
push eax
push 0
push 0
push 0x10008
call dword [edx + 0x28]
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040d990
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40e70f
mov ecx, dword [esp + 0x30]
test ecx, ecx
jbe 0x40e70f
mov edx, ecx
mov esi, eax
lea edi, [esp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, ebx
add esp, 4
mov eax, ebx
mov dword [esp + 0x18], ecx
xor ebx, ebx
cmp eax, ebx
jne 0x40eb61
cmp dword [esp + 0x30], 0x38
jne 0x40eb61
cmp dword [esp + 0x78], 0x3e6fe7ba
jne 0x40eb61
mov al, byte [esp + 0x44]
mov dword [esp + 0x2c], 1
test al, al
je 0x40e92b
mov al, byte [esp + 0x55]
test al, al
je 0x40e92b
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
cmp eax, 1
jne 0x40e787
lea eax, [esp + 0x55]
lea ecx, [ebp + 0x2d]
push eax
push ecx
call esi
add esp, 8
test eax, eax
je 0x40e92b
cmp dword [ebp + 8], ebx
jne 0x40e7aa
lea edx, [esp + 0x44]
lea eax, [ebp + 0x2d]
push edx
push eax
call esi
add esp, 8
test eax, eax
jne 0x40e7aa
mov ecx, dword [ebp + 8]
mov dword [esp + 0x2c], ecx
jmp 0x40e92b
mov ecx, dword [ebp + 4]
push ebx
call fcn.00459860
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc0], 1
call sub.MFC42.DLL_CSingleLock::Lock
mov ecx, dword [ebp + 4]
mov edi, 1
push edi
push ebx
call fcn.00459870
mov esi, eax
cmp esi, ebx
je 0x40e85c
mov ecx, esi
call fcn.004554b0
cmp eax, 1
mov dword [esp + 0x2c], eax
jne 0x40e817
lea edx, [esp + 0x55]
lea eax, [esp + 0xa0]
push edx
push eax
mov ecx, esi
call fcn.00455470
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x40e85c
mov ecx, esi
call fcn.004554b0
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x40e848
lea ecx, [esp + 0x44]
lea edx, [esp + 0xa0]
push ecx
push edx
mov ecx, esi
call fcn.00455470
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x40e85c
mov ecx, dword [ebp + 4]
mov eax, edi
push 1
push eax
inc edi
call fcn.00459870
mov esi, eax
cmp esi, ebx
jne 0x40e7e5
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CSingleLock::Unlock
cmp esi, ebx
jne 0x40e91a
lea eax, [esp + 0x7c]
mov dword [esp + 0x2c], 1
test eax, eax
je 0x40e8c1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov byte [esp + 0x7c], 0
call dword [edx]
test al, al
lea eax, [esp + 0x7c]
je 0x40e8c1
mov ecx, dword [esp + 0x20]
push eax
call fcn.004553b0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x40e8b1
mov ecx, dword [esp + 0x14]
push eax
call fcn.00459210
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x55]
push eax
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call fcn.00461920
add esp, 0x10
test al, al
jne 0x40e91a
lea ecx, [esp + 0x38]
mov byte [esp + 0xbc], al
call sub.MFC42.DLL_CSingleLock::Unlock
mov ecx, dword [esp + 0x20]
or eax, 0xffffffff
cmp ecx, ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0x10], vtable.GIPCConnection.0
jne 0x40eb9b
cmp dword [esp + 0x1c], eax
je 0x40eba4
jmp 0x40eb9b
lea ecx, [esp + 0x38]
mov byte [esp + 0xbc], 0
call sub.MFC42.DLL_CSingleLock::Unlock
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
call dword [edx]
test al, al
je 0x40ea6e
mov ecx, dword [esp + 0x20]
push esi
call fcn.00455540
mov eax, dword [esp + 0x1c]
or edi, 0xffffffff
cmp eax, edi
je 0x40e960
mov ecx, dword [esp + 0x14]
push eax
call fcn.00459210
cmp esi, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
jne 0x40ea6e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax]
test al, al
je 0x40e9a6
mov ecx, dword [esp + 0x20]
push str.ADMIN
call fcn.00455500
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40e99e
mov ecx, dword [esp + 0x14]
push eax
call fcn.00459210
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [edx]
test al, al
je 0x40e9dc
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
call fcn.004554c0
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x40e9d4
mov ecx, dword [esp + 0x14]
push eax
call fcn.00459210
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
mov ecx, dword [0x4fa100]
mov eax, dword [ecx + 0x6bc]
cmp eax, ebx
jne 0x40e9f1
mov eax, 0x4d7690
push 0x41
push eax
push 0x4f07d0
call fcn.004625f0
push eax
call fcn.00462680
push 0x4f07d0
call fcn.004634a0
add esp, 0x14
mov esi, eax
call fcn.0041ee40
mov edx, dword [eax + 0x20]
push 2
push esi
push 0x456
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 8], 3
jne 0x40ea5b
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x44]
mov dword [ebp + 8], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x2d]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x44]
test al, al
mov al, 1
jne 0x40eb42
jmp 0x40eb3f
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [edx]
test al, al
je 0x40ea93
mov ecx, dword [esp + 0x20]
push str.USER
call fcn.00455500
lea ecx, [esp + 0x10]
call fcn.0040d990
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call dword [eax]
test al, al
je 0x40eab8
lea ecx, [esp + 0x55]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004554c0
lea ecx, [esp + 0x10]
call fcn.0040d990
mov edx, dword [0x4fa100]
mov eax, dword [edx + 0x6c4]
cmp eax, ebx
jne 0x40eacd
mov eax, 0x4d7690
push 0x41
push eax
push 0x4f07d0
call fcn.004625f0
push eax
call fcn.00462680
add esp, 0x10
push 2
push 0x4f07d0
call fcn.004634a0
add esp, 4
push eax
push 0x456
call fcn.0041ee40
mov ecx, eax
call fcn.0040ebd0
cmp dword [ebp + 8], 3
jne 0x40eb35
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x55]
mov dword [ebp + 8], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x2d]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x55]
test al, al
mov al, 1
jne 0x40eb42
mov al, byte [ebp + 0x3e]
mov byte [ebp + 0x3e], al
lea ecx, [esp + 0x10]
mov byte [ebp + 0x3e], 1
mov dword [esp + 0xbc], 0xffffffff
call fcn.0040f8e0
mov al, 1
jmp 0x40eba6
cmp ecx, ebx
je 0x40eb7b
push ecx
mov ecx, dword [0x4fa100]
mov edx, dword [ecx + 0x3ef4]
push edx
call fcn.00467380
add esp, 8
mov ecx, dword [esp + 0x20]
or eax, 0xffffffff
cmp ecx, ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0x10], vtable.GIPCConnection.0
jne 0x40eb9b
cmp dword [esp + 0x1c], eax
je 0x40eba4
lea ecx, [esp + 0x10]
call fcn.0040d990
xor al, al
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret 8