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

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
mov eax, dword [edi + 4]
mov esi, edx
test eax, eax
je 0x46fef5
mov byte [edi + 0xbd], 1
cmp word [ecx], 0
je 0x46f503
push ecx
push eax
call dword [0x4ad644]
mov eax, dword [edi + 4]
mov ebx, 0x80000000
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x23], 0
call dword [0x4ad420]
mov ecx, dword [edi + 4]
mov ebp, eax
push ecx
mov dword [esp + 0x78], ebp
call dword [0x4ad424]
mov dword [esp + 0x48], eax
test eax, eax
je 0x46f549
mov dword [esp + 0x24], 9
jmp 0x46f55b
xor edx, edx
test ebp, ebp
setne dl
lea edx, [edx*4 + 1]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], esi
cmp word [esi], 0
mov ebp, esi
je 0x46f7f6
jmp 0x46f570
movzx esi, word [ebp]
test esi, 0xffffff80
jne 0x46f58e
push 2
push esi
call fcn.0049b39c
add esp, 8
test eax, eax
je 0x46f58e
and esi, 0xffffffdf
movzx eax, si
add eax, 0xfffffff7
cmp eax, 0x50
ja case.0x46f5a4.10
movzx eax, byte [eax + 0x46ff2c]
jmp dword [eax*4 + 0x46ff08]
add dword [esp + 0x18], 2
jmp case.0x46f5a4.10
push 8
push 0x4cdec8
push ebp
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne case.0x46f5a4.10
add dword [esp + 0x18], 0x10
mov byte [esp + 0x1f], 1
jmp case.0x46f5a4.10
push 6
push 0x4bc5c8
push ebp
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne case.0x46f5a4.10
add dword [esp + 0x18], 0xc
mov eax, 0x80000001
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
jmp case.0x46f5a4.10
push 8
push str.Minimize
push ebp
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x46f631
add dword [esp + 0x18], 0x10
mov dword [esp + 0x24], 6
jmp case.0x46f5a4.10
push 8
push str.Maximize
push ebp
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne case.0x46f5a4.10
add dword [esp + 0x18], 0x10
mov dword [esp + 0x24], 3
jmp case.0x46f5a4.10
push 2
push 0x4cdedc
push ebp
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x46f681
add dword [esp + 0x18], 4
mov dword [esp + 0x24], 8
jmp case.0x46f5a4.10
push 0xa
push 0x4cdee4
push ebp
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne case.0x46f5a4.10
add dword [esp + 0x18], 0x14
mov dword [esp + 0x24], 4
jmp case.0x46f5a4.10
push 7
push str.Restore
push ebp
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne case.0x46f5a4.10
add dword [esp + 0x18], 0xe
mov dword [esp + 0x24], 9
jmp case.0x46f5a4.10
push 6
lea ecx, [ebp + 2]
push 0x4bc5c8
push ecx
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne case.0x46f5a4.72
mov ax, word [ebp]
call fcn.0040eec0
cmp ax, 0x58
jne 0x46f70d
add dword [esp + 0x18], 0xe
mov dword [esp + 0x2c], 0x80000001
jmp 0x46f7e7
add dword [esp + 0x18], 0xe
mov dword [esp + 0x30], 0x80000001
jmp 0x46f7e7
push 4
push str.Hide
push ebp
call fcn.00499b8a
add esp, 0xc
test eax, eax
jne 0x46f741
add dword [esp + 0x18], 8
mov dword [esp + 0x24], eax
jmp 0x46f7e7
lea edx, [esp + 0x18]
push edx
lea ebx, [ebp + 2]
push ebx
call fcn.0049c9a9
add esp, 8
call fcn.004aa3a0
mov esi, eax
cmp dword [esp + 0x18], ebx
je 0x46f984
mov ax, word [ebp]
call fcn.0040eec0
movzx eax, ax
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x46f5a4.10
movzx eax, byte [eax + 0x46ff94]
jmp dword [eax*4 + 0x46ff80]
mov dword [esp + 0x2c], esi
jmp case.0x46f5a4.10
mov dword [esp + 0x30], esi
jmp case.0x46f5a4.10
cmp byte [edi + 0xc0], 0
je 0x46f7b0
mov ecx, dword [0x4da6ac]
push 0x60
push ecx
push esi
call dword [0x4ad2c0]
mov dword [esp + 0x20], eax
jmp case.0x46f5a4.10
mov dword [esp + 0x20], esi
jmp case.0x46f5a4.10
cmp byte [edi + 0xc0], 0
je 0x46f7d5
mov edx, dword [0x4da6ac]
push 0x60
push edx
push esi
call dword [0x4ad2c0]
mov dword [esp + 0x14], eax
jmp case.0x46f5a4.10
mov dword [esp + 0x14], esi
cmp dword [esp + 0x18], ebp
je 0x46f988
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
cmp word [ebp], 0
jne 0x46f570
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x70], ebx
mov byte [esp + 0x2b], 0
test eax, eax
je 0x46f827
cmp eax, 9
je 0x46f819
cmp eax, 4
jne 0x46f83b
cmp dword [esp + 0x74], 0
jne 0x46f827
cmp dword [esp + 0x48], 0
je 0x46f83b
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 4]
push ecx
push edx
call dword [0x4ad608]
mov byte [esp + 0x2b], 1
cmp byte [edi + 0xbb], 0
je 0x46f86b
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x46f86b
xor esi, esi
lea ecx, [ecx]
mov eax, dword [edi + 0x18]
add eax, esi
cmp byte [eax + 4], 0x13
jne 0x46f862
push eax
push edi
call fcn.00473ad0
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x46f850
mov ecx, dword [edi + 4]
push ecx
call dword [0x4ad424]
test eax, eax
sete al
mov byte [esp + 0x37], al
test al, al
je 0x46fa5d
cmp byte [esp + 0x1f], 0
je 0x46f9a5
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebx
cmp dword [edi + 0x10], ebx
jbe 0x46f945
mov dword [esp + 0x20], ebx
lea ebx, [ebx]
mov esi, dword [edi + 0x18]
add esi, dword [esp + 0x20]
cmp byte [esi + 4], 0x19
je 0x46f91c
cmp byte [esi + 6], 0xff
je 0x46f8d1
mov edx, dword [esi]
push edx
call dword [0x4ad688]
cmp eax, dword [edi + 4]
jne 0x46f91c
mov eax, dword [esi]
push 0xfffffffffffffff0
push eax
call dword [0x4ad65c]
test eax, 0x10000000
je 0x46f91c
mov edx, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [0x4ad61c]
mov ecx, dword [edi + 4]
push 2
lea eax, [esp + 0x50]
push eax
push ecx
push 0
call dword [0x4ad490]
mov eax, dword [esp + 0x54]
cmp eax, ebp
jle 0x46f90e
mov ebp, eax
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x14]
jle 0x46f91c
mov dword [esp + 0x14], eax
add dword [esp + 0x20], 0x14
inc ebx
cmp ebx, dword [edi + 0x10]
jb 0x46f8b0
mov dword [esp + 0x20], ebp
test ebp, ebp
jle 0x46f936
add ebp, dword [edi + 0x78]
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x46f945
add eax, dword [edi + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x46fa5d
push 0xfffffffffffffff0
push eax
call dword [0x4ad65c]
test eax, 0x10000000
je 0x46fa5d
mov eax, dword [edi + 8]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [0x4ad61c]
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x50]
add dword [esp + 0x14], ecx
jmp 0x46fa5d
mov dword [esp + 0x18], ebp
push ebp
push str.Invalid_option.
mov ecx, 0x4da6c0
call fcn.0043a380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 4
mov esi, dword [esp + 0x14]
cmp ebx, 0x80000000
je 0x46f9bd
cmp esi, 0x80000000
jne 0x46fa5d
cmp byte [edi + 0xbb], 0
je 0x46fa26
cmp ebx, 0x80000000
jne 0x46f9db
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x20], eax
cmp esi, 0x80000000
jne 0x46fa5d
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 8]
mov dword [esp + 0x14], esi
test eax, eax
je 0x46fa5d
push 0xfffffffffffffff0
push eax
call dword [0x4ad65c]
test eax, 0x10000000
je 0x46fa5d
mov eax, dword [edi + 8]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [0x4ad61c]
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x50]
add esi, ecx
mov dword [esp + 0x14], esi
jmp 0x46fa5d
mov eax, dword [edi + 4]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [0x4ad628]
cmp ebx, 0x80000000
jne 0x46fa49
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
cmp esi, 0x80000000
jne 0x46fa5d
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
cmp byte [edi + 0xbb], 0
je 0x46fabf
cmp byte [edi + 0xb8], 0
je 0x46fa9e
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x46fa9e
xor esi, esi
jmp 0x46fa80
mov ecx, dword [edi + 0x18]
cmp byte [esi + ecx + 4], 0x13
lea eax, [esi + ecx]
jne 0x46fa95
push 0
push eax
call fcn.00473350
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x46fa80
mov eax, 0x80000000
cmp dword [esp + 0x2c], eax
jne 0x46fab1
mov dword [esp + 0x2c], 0x80000001
cmp dword [esp + 0x30], eax
jne 0x46fabf
mov dword [esp + 0x30], 0x80000001
mov edx, dword [edi + 4]
push edx
call dword [0x4ad52c]
cmp byte [esp + 0x37], 0
mov dword [esp + 0x48], eax
je 0x46fdd6
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0x14]
mov ebx, dword [0x4ad65c]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
push 0xfffffffffffffff0
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call ebx
mov ebp, eax
mov eax, dword [edi + 4]
push eax
call dword [0x4ad538]
mov ecx, dword [edi + 4]
neg eax
push 0xffffffffffffffec
sbb esi, esi
push ecx
neg esi
call ebx
push eax
push esi
push ebp
lea edx, [esp + 0x44]
push edx
call dword [0x4ad630]
mov ebx, dword [0x4ad578]
test ebp, 0x100000
je 0x46fb3e
push 3
call ebx
add dword [esp + 0x44], eax
test ebp, 0x200000
je 0x46fb4e
push 2
call ebx
add dword [esp + 0x40], eax
test esi, esi
je 0x46fba4
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x78]
push ecx
push 0
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x88], edx
mov edx, dword [edi + 4]
push 0x83
mov dword [esp + 0x90], eax
push edx
mov dword [esp + 0x94], 0x7fff
call dword [0x4ad654]
mov eax, dword [esp + 0x7c]
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov esi, eax
sub esi, dword [esp + 0x20]
mov ebx, ecx
sub ebx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x14], ecx
test eax, eax
je 0x46fbed
test ebp, 0x40000000
je 0x46fbed
lea ecx, [esp + 0x88]
push ecx
push eax
mov byte [esp + 0x27], 1
call dword [0x4ad628]
jmp 0x46fc06
push 0
lea edx, [esp + 0x8c]
push edx
push 0
push 0x30
mov byte [esp + 0x2f], 0
call dword [0x4ad62c]
mov eax, dword [esp + 0x90]
mov ebp, dword [esp + 0x88]
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x8c]
sub eax, ebp
cmp byte [edi + 0xbb], 0
je 0x46fc5c
cmp byte [esp + 0x1f], 0
jne 0x46fc5c
cmp dword [esp + 0x70], 0x80000000
jne 0x46fc48
cmp dword [esp + 0x20], eax
jle 0x46fc48
mov dword [esp + 0x20], eax
cmp dword [esp + 0x6c], 0x80000000
jne 0x46fc5c
cmp dword [esp + 0x14], ecx
jle 0x46fc5c
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x2c], 0x80000001
jne 0x46fc75
sub eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
add eax, ebp
mov dword [esp + 0x2c], eax
mov ebp, dword [esp + 0x30]
cmp ebp, 0x80000001
jne 0x46fc95
mov eax, ecx
sub eax, dword [esp + 0x14]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
add ebp, dword [esp + 0x8c]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [0x4ad61c]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
sub ecx, dword [esp + 0x5c]
sub edx, dword [esp + 0x60]
cmp byte [edi + 0xbb], 0
je 0x46fd55
mov eax, dword [edi + 0xa8]
cmp eax, 0x80000001
jne 0x46fcd4
mov eax, dword [esp + 0x20]
jmp 0x46fcdd
cmp eax, 0x80000000
je 0x46fce3
add eax, esi
mov dword [edi + 0xa8], eax
mov eax, dword [edi + 0xac]
cmp eax, 0x80000001
jne 0x46fcf6
mov eax, dword [esp + 0x14]
jmp 0x46fcff
cmp eax, 0x80000000
je 0x46fd05
add eax, ebx
mov dword [edi + 0xac], eax
mov eax, dword [edi + 0xb0]
cmp eax, 0x80000001
jne 0x46fd1e
mov eax, dword [esp + 0x20]
mov dword [edi + 0xb0], eax
jmp 0x46fd2d
cmp eax, 0x80000000
je 0x46fd2d
add esi, eax
mov dword [edi + 0xb0], esi
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x46fd46
mov eax, dword [esp + 0x14]
mov dword [edi + 0xb4], eax
jmp 0x46fd55
cmp eax, 0x80000000
je 0x46fd55
add ebx, eax
mov dword [edi + 0xb4], ebx
mov ebx, dword [esp + 0x20]
cmp ebx, ecx
jne 0x46fd85
cmp dword [esp + 0x14], edx
jne 0x46fd85
mov esi, dword [esp + 0x2c]
cmp esi, 0x80000000
je 0x46fd75
cmp esi, dword [esp + 0x5c]
jne 0x46fd89
cmp ebp, 0x80000000
je 0x46fdd6
cmp ebp, dword [esp + 0x60]
je 0x46fdd6
jmp 0x46fd89
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 4]
push ecx
call dword [0x4ad420]
test eax, eax
je 0x46fda3
mov edx, dword [edi + 4]
push 9
push edx
call dword [0x4ad608]
mov ecx, dword [esp + 0x60]
cmp ebp, 0x80000000
je 0x46fdb1
mov ecx, ebp
mov eax, dword [esp + 0x5c]
cmp esi, 0x80000000
je 0x46fdbf
mov eax, esi
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x18]
push edx
push ebx
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call dword [0x4ad618]
cmp byte [esp + 0x2b], 0
mov ebx, dword [0x4ad67c]
mov ebp, dword [esp + 0x24]
jne 0x46fe0c
cmp ebp, 6
jne 0x46fe01
mov esi, dword [edi + 4]
call ebx
cmp eax, esi
jne 0x46fe01
push 0
push 0
push ebp
push esi
call dword [0x4ad4a0]
mov ecx, dword [edi + 4]
push ebp
push ecx
call dword [0x4ad608]
lea eax, [ebp - 1]
cmp eax, 8
ja case.0x46fe1f.2
movzx edx, byte [eax + 0x46ffb0]
jmp dword [edx*4 + 0x46ffa8]
mov eax, dword [edi + 4]
push 2
push eax
call dword [0x4ad4a4]
cmp eax, dword [edi + 4]
jne case.0x46fe1f.2
mov esi, dword [edi + 4]
call ebx
cmp esi, eax
je 0x46fe4b
mov eax, esi
call fcn.00483940
cmp byte [edi + 0xbc], 0
je case.0x46fe1f.2
mov byte [edi + 0xbc], 0
call dword [0x4ad670]
mov ebp, eax
test ebp, ebp
je 0x46fed1
cmp byte [edi + 0xb8], 0
je case.0x46fe1f.2
mov ebx, dword [0x4ad68c]
push ebp
call ebx
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x46fe9d
push ebp
call dword [0x4ad688]
mov ebp, eax
test ebp, ebp
je 0x46fe98
push ebp
call ebx
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jae case.0x46fe1f.2
mov edx, dword [edi + 0x18]
lea ecx, [esi + esi*4]
cmp dword [edx + ecx*4], ebp
lea ebx, [edx + ecx*4]
jne case.0x46fe1f.2
cmp esi, 0x2af8
je case.0x46fe1f.2
test ebx, ebx
je case.0x46fe1f.2
cmp byte [ebx + 4], 0x13
jne case.0x46fe1f.2
mov eax, dword [edi + 4]
push eax
call dword [0x4ad4a8]
push 1
push ebx
call fcn.00473350
jmp case.0x46fe1f.2
mov ecx, dword [edi + 4]
push ecx
call dword [0x4ad400]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xbb], 0
mov byte [edi + 0xbd], 0
call fcn.004014c0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x88
ret 4