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

Disassembly:
push 0xffffffffffffffff
push 0x4ded3b
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x52472c]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52472c]
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 [0x52c188], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
jne 0x464876
mov ebx, 1
or dword [0x52c188], ebx
mov dword [esp + 0xbc], ebp
mov ecx, dword [0x52802c]
cmp ecx, ebp
je 0x46475e
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push ebx
lea eax, [esp + 0x7c]
push eax
call edx
mov byte [esp + 0xbc], bl
lea edi, [ebp + 7]
jmp 0x4647ad
xor eax, eax
mov edi, 7
push 0x4ed604
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebp
mov word [esp + 0x9c], ax
call fcn.004b3950
add esp, 4
push eax
push 0x4ed604
lea ecx, [esp + 0x9c]
call fcn.004042b1
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 [0x52c140], cx
push eax
mov ecx, 0x52c13c
mov dword [0x52c154], edi
mov dword [0x52c150], ebp
call fcn.00403fe5
mov dword [esp + 0xbc], 1
test bl, 2
je 0x46481d
and ebx, 0xfffffffd
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xac], 8
jb 0x464805
mov edx, dword [esp + 0x98]
push edx
call fcn.004b1fa3
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 0x46485c
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x90], 8
jb 0x464847
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004b1fa3
add esp, 4
xor edx, edx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], dx
push 0x4e9d60
call fcn.004b4125
add esp, 4
mov dword [esp + 0xbc], 0xffffffff
jmp 0x46487b
mov edi, 7
test byte [0x52c188], 2
jne 0x4649d6
or dword [0x52c188], 2
mov esi, 3
mov dword [esp + 0xbc], esi
mov ecx, dword [0x52802c]
cmp ecx, ebp
je 0x4648bf
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push ebp
lea edx, [esp + 0x7c]
push edx
call eax
mov byte [esp + 0xbc], 4
or ebx, 4
jmp 0x46490b
xor ecx, ecx
push 0x4ed604
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebp
mov word [esp + 0x9c], cx
call fcn.004b3950
add esp, 4
push eax
push 0x4ed604
lea ecx, [esp + 0x9c]
call fcn.004042b1
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, 0x52c16c
mov dword [0x52c184], edi
mov dword [0x52c180], ebp
mov word [0x52c170], dx
call fcn.00403fe5
mov dword [esp + 0xbc], 4
test bl, 8
je 0x46497b
and ebx, 0xfffffff7
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xac], 8
jb 0x464963
mov eax, dword [esp + 0x98]
push eax
call fcn.004b1fa3
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 0x4649ba
and ebx, 0xfffffffb
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x90], 8
jb 0x4649a5
mov edx, dword [esp + 0x7c]
push edx
call fcn.004b1fa3
add esp, 4
xor eax, eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], ax
push 0x4e9d20
call fcn.004b4125
add esp, 4
mov dword [esp + 0xbc], 0xffffffff
mov esi, dword [esp + 0x1c]
cmp dword [0x528030], ebp
je 0x464a98
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.00403fe5
mov ebx, 6
mov dword [esp + 0xbc], ebx
lea ecx, [esp + 0x78]
call fcn.004645e0
lea esi, [esp + 0x1c]
call fcn.00464570
mov byte [esp + 0xbc], 7
lea eax, [esp + 0x78]
push eax
call fcn.00465500
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 0x464a7e
mov edx, dword [esp + 0x7c]
push edx
call fcn.004b1fa3
add esp, 4
xor eax, eax
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], ax
jmp 0x464d1b
cmp dword [esi + 0x18], 8
mov edx, dword [esi + 0x14]
jb 0x464aa6
mov eax, dword [esi + 4]
jmp 0x464aa9
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 0x464abb
mov edi, ecx
cmp edi, edx
jae 0x464ac1
mov edx, edi
cmp dword [esi + 0x18], 8
jb 0x464acc
mov ecx, dword [esi + 4]
jmp 0x464acf
lea ecx, [esi + 4]
cmp edx, ebp
jbe 0x464aea
mov si, word [ecx]
cmp si, word [eax]
jne 0x464b0b
add ecx, 2
add eax, 2
sub edx, 1
jne 0x464ad3
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
cmp edi, eax
jb 0x464b02
xor ecx, ecx
cmp edi, eax
setne cl
mov eax, ecx
cmp eax, ebp
je 0x464b21
mov eax, esi
mov edi, 7
jmp 0x464b73
mov dx, si
cmp dx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebp
je 0x464ae6
mov esi, dword [esp + 0x18]
jmp 0x464afe
xor edx, edx
mov edi, 7
push 0x4ed604
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], dx
call fcn.004b3950
add esp, 4
push eax
push 0x4ed604
lea ecx, [esp + 0x80]
call fcn.004042b1
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.00403fe5
mov dword [esp + 0xbc], 0xa
test bl, 0x10
je 0x464bde
and ebx, 0xffffffef
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x90], 8
jb 0x464bc9
mov edx, dword [esp + 0x7c]
push edx
call fcn.004b1fa3
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.004645e0
mov esi, dword [esp + 0x28]
cmp esi, ebp
jne 0x464bf8
mov esi, dword [0x528028]
lea ecx, [esp + 0x2c]
push ecx
call fcn.00465b20
mov byte [esp + 0xbc], 0xb
cmp dword [0x52c180], ebp
jne 0x464c5e
xor edx, edx
push str.Error
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], dx
call fcn.004b3950
add esp, 4
push eax
push str.Error
lea ecx, [esp + 0x80]
call fcn.004042b1
lea eax, [esp + 0x78]
mov byte [esp + 0xbc], 0xc
or ebx, 0x20
mov dword [esp + 0x14], ebx
jmp 0x464c63
mov eax, 0x52c16c
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.00465b80
mov dword [esp + 0xbc], 0xb
test bl, 0x20
je 0x464ccc
and ebx, 0xffffffdf
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x90], 8
jb 0x464cb7
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004b1fa3
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.00464dc0
mov dword [esp + 0xbc], 0xffffffff
cmp dword [esp + 0xac], 8
jb 0x464d03
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004b1fa3
add esp, 4
xor edx, edx
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebp
mov word [esp + 0x98], dx
mov ecx, dword [0x52802c]
cmp ecx, ebp
je 0x464d3a
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.004b1fae
add esp, 0xac
ret