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

Disassembly:
push 0xffffffffffffffff
push 0x4f65ab
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x541770]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x541770]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0xc8]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xcc]
xor ebp, ebp
mov dword [esp + 0x14], ebx
test byte [0x549c94], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
jne 0x46b2c6
mov ebx, 1
or dword [0x549c94], ebx
mov dword [esp + 0xbc], ebp
mov ecx, dword [0x5452c8]
cmp ecx, ebp
je 0x46b1ae
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push ebx
lea eax, [esp + 0x7c]
push eax
call edx
mov byte [esp + 0xbc], bl
lea edi, [ebp + 7]
jmp 0x46b1fd
xor eax, eax
mov edi, 7
push 0x5057a4
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebp
mov word [esp + 0x9c], ax
call fcn.004c6f29
add esp, 4
push eax
push 0x5057a4
lea ecx, [esp + 0x9c]
call fcn.0040518b
mov ebx, 2
lea eax, [esp + 0x94]
mov dword [esp + 0xbc], ebx
push 0xffffffffffffffff
mov dword [esp + 0x18], ebx
xor ecx, ecx
push ebp
mov word [0x549c38], cx
push eax
mov ecx, 0x549c34
mov dword [0x549c4c], edi
mov dword [0x549c48], ebp
call fcn.00401665
mov dword [esp + 0xbc], 1
test bl, 2
je 0x46b26d
and ebx, 0xfffffffd
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xac], 8
jb 0x46b255
mov edx, dword [esp + 0x98]
push edx
call fcn.004c6252
add esp, 4
xor eax, eax
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebp
mov word [esp + 0x98], ax
mov dword [esp + 0xbc], ebp
test bl, 1
je 0x46b2ac
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x90], 8
jb 0x46b297
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004c6252
add esp, 4
xor edx, edx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], dx
push 0x5012c0
call fcn.004c6971
add esp, 4
mov dword [esp + 0xbc], 0xffffffff
jmp 0x46b2cb
mov edi, 7
test byte [0x549c94], 2
jne 0x46b426
or dword [0x549c94], 2
mov esi, 3
mov dword [esp + 0xbc], esi
mov ecx, dword [0x5452c8]
cmp ecx, ebp
je 0x46b30f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push ebp
lea edx, [esp + 0x7c]
push edx
call eax
mov byte [esp + 0xbc], 4
or ebx, 4
jmp 0x46b35b
xor ecx, ecx
push 0x5057a4
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebp
mov word [esp + 0x9c], cx
call fcn.004c6f29
add esp, 4
push eax
push 0x5057a4
lea ecx, [esp + 0x9c]
call fcn.0040518b
lea eax, [esp + 0x94]
mov dword [esp + 0xbc], 5
or ebx, 8
push 0xffffffffffffffff
mov dword [esp + 0x18], ebx
push ebp
xor edx, edx
push eax
mov ecx, 0x549c78
mov dword [0x549c90], edi
mov dword [0x549c8c], ebp
mov word [0x549c7c], dx
call fcn.00401665
mov dword [esp + 0xbc], 4
test bl, 8
je 0x46b3cb
and ebx, 0xfffffff7
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xac], 8
jb 0x46b3b3
mov eax, dword [esp + 0x98]
push eax
call fcn.004c6252
add esp, 4
xor ecx, ecx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebp
mov word [esp + 0x98], cx
mov dword [esp + 0xbc], esi
test bl, 4
je 0x46b40a
and ebx, 0xfffffffb
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x90], 8
jb 0x46b3f5
mov edx, dword [esp + 0x7c]
push edx
call fcn.004c6252
add esp, 4
xor eax, eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], ax
push 0x501280
call fcn.004c6971
add esp, 4
mov dword [esp + 0xbc], 0xffffffff
mov esi, dword [esp + 0x1c]
cmp dword [0x5452cc], ebp
je 0x46b4e8
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
xor ecx, ecx
push ebp
mov word [esp + 0x84], cx
push edx
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebp
call fcn.00401665
mov ebx, 6
mov dword [esp + 0xbc], ebx
lea ecx, [esp + 0x78]
call fcn.0046b030
lea esi, [esp + 0x1c]
call fcn.0046afc0
mov byte [esp + 0xbc], 7
lea eax, [esp + 0x78]
push eax
call fcn.0046f280
add esp, 4
mov byte [esp + 0xbc], bl
mov ecx, dword [esp + 0x1c]
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [esp + 0xbc], 0xffffffff
cmp dword [esp + 0x90], 8
jb 0x46b4ce
mov edx, dword [esp + 0x7c]
push edx
call fcn.004c6252
add esp, 4
xor eax, eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], ax
jmp 0x46b76b
cmp dword [esi + 0x18], 8
mov edx, dword [esi + 0x14]
jb 0x46b4f6
mov eax, dword [esi + 4]
jmp 0x46b4f9
lea eax, [esi + 4]
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + 0x14]
mov esi, ecx
mov ecx, dword [esi + 0x14]
cmp ecx, edi
jae 0x46b50b
mov edi, ecx
cmp edi, edx
jae 0x46b511
mov edx, edi
cmp dword [esi + 0x18], 8
jb 0x46b51c
mov ecx, dword [esi + 4]
jmp 0x46b51f
lea ecx, [esi + 4]
cmp edx, ebp
jbe 0x46b53a
mov si, word [ecx]
cmp si, word [eax]
jne 0x46b55b
add ecx, 2
add eax, 2
sub edx, 1
jne 0x46b523
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
cmp edi, eax
jb 0x46b552
xor ecx, ecx
cmp edi, eax
setne cl
mov eax, ecx
cmp eax, ebp
je 0x46b571
mov eax, esi
mov edi, 7
jmp 0x46b5c3
mov dx, si
cmp dx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebp
je 0x46b536
mov esi, dword [esp + 0x18]
jmp 0x46b54e
xor edx, edx
mov edi, 7
push 0x5057a4
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], dx
call fcn.004c6f29
add esp, 4
push eax
push 0x5057a4
lea ecx, [esp + 0x80]
call fcn.0040518b
lea eax, [esp + 0x78]
mov dword [esp + 0xbc], 8
or ebx, 0x10
mov dword [esp + 0x14], ebx
push 0xffffffffffffffff
xor ecx, ecx
push ebp
mov word [esp + 0xa0], cx
push eax
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], ebp
call fcn.00401665
mov dword [esp + 0xbc], 0xa
test bl, 0x10
je 0x46b62e
and ebx, 0xffffffef
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x90], 8
jb 0x46b619
mov edx, dword [esp + 0x7c]
push edx
call fcn.004c6252
add esp, 4
xor eax, eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], ax
lea ecx, [esp + 0x94]
call fcn.0046b030
mov esi, dword [esp + 0x28]
cmp esi, ebp
jne 0x46b648
mov esi, dword [0x5452c4]
lea ecx, [esp + 0x2c]
push ecx
call fcn.0046f8a0
mov byte [esp + 0xbc], 0xb
cmp dword [0x549c8c], ebp
jne 0x46b6ae
xor edx, edx
push str.Error
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], dx
call fcn.004c6f29
add esp, 4
push eax
push str.Error
lea ecx, [esp + 0x80]
call fcn.0040518b
lea eax, [esp + 0x78]
mov byte [esp + 0xbc], 0xc
or ebx, 0x20
mov dword [esp + 0x14], ebx
jmp 0x46b6b3
mov eax, 0x549c78
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x94]
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
neg eax
sbb eax, eax
and eax, esi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0046f900
mov dword [esp + 0xbc], 0xb
test bl, 0x20
je 0x46b71c
and ebx, 0xffffffdf
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x90], 8
jb 0x46b707
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004c6252
add esp, 4
xor edx, edx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], dx
mov byte [esp + 0xbc], 0xa
lea eax, [esp + 0x2c]
push eax
call fcn.0046b810
mov dword [esp + 0xbc], 0xffffffff
cmp dword [esp + 0xac], 8
jb 0x46b753
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004c6252
add esp, 4
xor edx, edx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebp
mov word [esp + 0x98], dx
mov ecx, dword [0x5452c8]
cmp ecx, ebp
je 0x46b78a
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push edx
call eax
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004c625d
add esp, 0xac
ret