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

Disassembly:
sub esp, 0x88
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
push edi
mov edi, edx
mov eax, dword [edi + 4]
test eax, eax
je 0x470185
mov byte [edi + 0xbd], 1
cmp byte [ecx], 0
je 0x46f7a2
push ecx
push eax
call dword [0x4a56b4]
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 + 0x1c], ebx
mov byte [esp + 0x23], 0
call dword [0x4a5424]
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
mov dword [esp + 0x78], esi
call dword [0x4a5428]
mov dword [esp + 0x48], eax
test eax, eax
je 0x46f7e8
mov dword [esp + 0x28], 9
jmp 0x46f7fa
xor edx, edx
test esi, esi
setne dl
lea edx, [edx*4 + 1]
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], ebp
cmp byte [ebp], 0
je 0x46fa92
jmp 0x46f810
movzx esi, byte [ebp]
test esi, 0xffffff80
jne 0x46f82e
push 2
push esi
call fcn.00493e17
add esp, 8
test eax, eax
je 0x46f82e
and esi, 0xffffffdf
mov eax, esi
movsx eax, al
add eax, 0xfffffff7
cmp eax, 0x50
ja case.0x46f846.10
movzx eax, byte [eax + 0x4701bc]
jmp dword [eax*4 + 0x470198]
inc dword [esp + 0x14]
jmp case.0x46f846.10
push 8
push 0x4b0c64
push ebp
call fcn.0049353e
add esp, 0xc
test eax, eax
jne case.0x46f846.10
add dword [esp + 0x14], 8
mov byte [esp + 0x1f], 1
jmp case.0x46f846.10
push 6
push 0x4aeeb8
push ebp
call fcn.0049353e
add esp, 0xc
test eax, eax
jne case.0x46f846.10
add dword [esp + 0x14], 6
mov eax, 0x80000001
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
jmp case.0x46f846.10
push 8
push 0x4ab2c4
push ebp
call fcn.0049353e
add esp, 0xc
test eax, eax
jne 0x46f8d2
add dword [esp + 0x14], 8
mov dword [esp + 0x28], 6
jmp case.0x46f846.10
push 8
push 0x4ab2d0
push ebp
call fcn.0049353e
add esp, 0xc
test eax, eax
jne case.0x46f846.10
add dword [esp + 0x14], 8
mov dword [esp + 0x28], 3
jmp case.0x46f846.10
push 2
push 0x4b0c70
push ebp
call fcn.0049353e
add esp, 0xc
test eax, eax
jne 0x46f922
add dword [esp + 0x14], 2
mov dword [esp + 0x28], 8
jmp case.0x46f846.10
push 0xa
push 0x4b0c74
push ebp
call fcn.0049353e
add esp, 0xc
test eax, eax
jne case.0x46f846.10
add dword [esp + 0x14], 0xa
mov dword [esp + 0x28], 4
jmp case.0x46f846.10
push 7
push 0x4ab2dc
push ebp
call fcn.0049353e
add esp, 0xc
test eax, eax
jne case.0x46f846.10
add dword [esp + 0x14], 7
mov dword [esp + 0x28], 9
jmp case.0x46f846.10
push 6
lea ecx, [ebp + 1]
push 0x4aeeb8
push ecx
call fcn.0049353e
add esp, 0xc
test eax, eax
jne case.0x46f846.72
mov al, byte [ebp]
call fcn.00411280
cmp al, 0x58
jne 0x46f9ab
add dword [esp + 0x14], 7
mov dword [esp + 0x2c], 0x80000001
jmp 0x46fa84
add dword [esp + 0x14], 7
mov dword [esp + 0x30], 0x80000001
jmp 0x46fa84
push 4
push 0x4ab2bc
push ebp
call fcn.0049353e
add esp, 0xc
test eax, eax
jne 0x46f9df
add dword [esp + 0x14], 4
mov dword [esp + 0x28], eax
jmp 0x46fa84
lea edx, [esp + 0x14]
push edx
lea ebx, [ebp + 1]
push ebx
call fcn.00496350
add esp, 8
call fcn.004a21b0
mov esi, eax
cmp dword [esp + 0x14], ebx
je 0x46fc19
mov al, byte [ebp]
call fcn.00411280
movsx eax, al
add eax, 0xffffffb8
cmp eax, 0x11
ja case.0x46f846.10
movzx eax, byte [eax + 0x470224]
jmp dword [eax*4 + 0x470210]
mov dword [esp + 0x2c], esi
jmp case.0x46f846.10
mov dword [esp + 0x30], esi
jmp case.0x46f846.10
cmp byte [edi + 0xc0], 0
je 0x46fa4d
mov ecx, dword [0x4bc44c]
push 0x60
push ecx
push esi
call dword [0x4a52c0]
mov dword [esp + 0x20], eax
jmp case.0x46f846.10
mov dword [esp + 0x20], esi
jmp case.0x46f846.10
cmp byte [edi + 0xc0], 0
je 0x46fa72
mov edx, dword [0x4bc44c]
push 0x60
push edx
push esi
call dword [0x4a52c0]
mov dword [esp + 0x18], eax
jmp case.0x46f846.10
mov dword [esp + 0x18], esi
cmp dword [esp + 0x14], ebp
je 0x46fc1d
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
cmp byte [ebp], 0
jne 0x46f810
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], esi
mov byte [esp + 0x27], 0
test eax, eax
je 0x46fac3
cmp eax, 9
je 0x46fab5
cmp eax, 4
jne 0x46fad3
cmp dword [esp + 0x74], 0
jne 0x46fac3
cmp dword [esp + 0x48], 0
je 0x46fad3
push eax
mov eax, dword [edi + 4]
push eax
call dword [0x4a5654]
mov byte [esp + 0x27], 1
cmp byte [edi + 0xbb], 0
je 0x46fb06
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x46fb06
xor esi, esi
mov ecx, dword [edi + 0x18]
cmp byte [esi + ecx + 4], 0x13
lea eax, [esi + ecx]
jne 0x46faf9
push eax
push edi
call fcn.00473d60
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x46fae5
mov esi, dword [esp + 0x18]
mov edx, dword [edi + 4]
push edx
call dword [0x4a5428]
test eax, eax
sete al
mov byte [esp + 0x37], al
test al, al
je 0x46fcee
cmp byte [esp + 0x1f], 0
je 0x46fc3a
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x10], ebx
jbe 0x46fbda
mov dword [esp + 0x20], ebx
mov esi, dword [edi + 0x18]
add esi, dword [esp + 0x20]
cmp byte [esi + 4], 0x19
je 0x46fbb1
cmp byte [esi + 6], 0xff
je 0x46fb66
mov eax, dword [esi]
push eax
call dword [0x4a569c]
cmp eax, dword [edi + 4]
jne 0x46fbb1
mov ecx, dword [esi]
push 0xfffffffffffffff0
push ecx
call dword [0x4a5670]
test eax, 0x10000000
je 0x46fbb1
mov eax, dword [esi]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [0x4a562c]
mov edx, dword [edi + 4]
push 2
lea ecx, [esp + 0x50]
push ecx
push edx
push 0
call dword [0x4a5498]
mov eax, dword [esp + 0x54]
cmp eax, ebp
jle 0x46fba3
mov ebp, eax
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x18]
jle 0x46fbb1
mov dword [esp + 0x18], eax
add dword [esp + 0x20], 0x14
inc ebx
cmp ebx, dword [edi + 0x10]
jb 0x46fb45
mov dword [esp + 0x20], ebp
test ebp, ebp
jle 0x46fbcb
add ebp, dword [edi + 0x78]
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x46fbda
add eax, dword [edi + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x46fcee
push 0xfffffffffffffff0
push eax
call dword [0x4a5670]
test eax, 0x10000000
je 0x46fcee
mov ecx, dword [edi + 8]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [0x4a562c]
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x50]
add dword [esp + 0x18], edx
jmp 0x46fcee
mov dword [esp + 0x14], ebp
push ebp
push 0x4aa600
mov ecx, 0x4bc460
call fcn.0043b780
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 4
cmp ebx, 0x80000000
je 0x46fc4e
cmp esi, 0x80000000
jne 0x46fcee
cmp byte [edi + 0xbb], 0
je 0x46fcb7
cmp ebx, 0x80000000
jne 0x46fc6c
mov eax, dword [edi + 0x90]
add eax, dword [edi + 0x78]
mov dword [esp + 0x20], eax
cmp esi, 0x80000000
jne 0x46fcee
mov esi, dword [edi + 0x94]
add esi, dword [edi + 0x7c]
mov eax, dword [edi + 8]
mov dword [esp + 0x18], esi
test eax, eax
je 0x46fcee
push 0xfffffffffffffff0
push eax
call dword [0x4a5670]
test eax, 0x10000000
je 0x46fcee
mov ecx, dword [edi + 8]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [0x4a562c]
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x50]
add esi, edx
mov dword [esp + 0x18], esi
jmp 0x46fcee
mov ecx, dword [edi + 4]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [0x4a5638]
cmp ebx, 0x80000000
jne 0x46fcda
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
cmp esi, 0x80000000
jne 0x46fcee
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
cmp byte [edi + 0xbb], 0
je 0x46fd4f
cmp byte [edi + 0xb8], 0
je 0x46fd2e
xor ebp, ebp
cmp dword [edi + 0x10], ebp
jbe 0x46fd2e
xor esi, esi
lea esp, [esp]
mov edx, dword [edi + 0x18]
cmp byte [esi + edx + 4], 0x13
lea eax, [esi + edx]
jne 0x46fd25
push 0
push eax
call fcn.00473600
inc ebp
add esi, 0x14
cmp ebp, dword [edi + 0x10]
jb 0x46fd10
mov eax, 0x80000000
cmp dword [esp + 0x2c], eax
jne 0x46fd41
mov dword [esp + 0x2c], 0x80000001
cmp dword [esp + 0x30], eax
jne 0x46fd4f
mov dword [esp + 0x30], 0x80000001
mov eax, dword [edi + 4]
push eax
call dword [0x4a5530]
cmp byte [esp + 0x37], 0
mov dword [esp + 0x48], eax
je 0x470066
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ebx, dword [0x4a5670]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 4]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
call ebx
mov ecx, dword [edi + 4]
push ecx
mov ebp, eax
call dword [0x4a5550]
mov edx, dword [edi + 4]
neg eax
push 0xffffffffffffffec
sbb esi, esi
push edx
neg esi
call ebx
push eax
push esi
push ebp
lea eax, [esp + 0x44]
push eax
call dword [0x4a5640]
mov ebx, dword [0x4a5588]
test ebp, 0x100000
je 0x46fdce
push 3
call ebx
add dword [esp + 0x44], eax
test ebp, 0x200000
je 0x46fdde
push 2
call ebx
add dword [esp + 0x40], eax
test esi, esi
je 0x46fe34
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x7c], edx
lea edx, [esp + 0x78]
push edx
push 0
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x88], eax
mov eax, dword [edi + 4]
push 0x83
mov dword [esp + 0x90], ecx
push eax
mov dword [esp + 0x94], 0x7fff
call dword [0x4a5668]
mov ecx, dword [esp + 0x7c]
add dword [esp + 0x44], ecx
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 + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], ecx
test eax, eax
je 0x46fe7d
test ebp, 0x40000000
je 0x46fe7d
lea edx, [esp + 0x88]
push edx
push eax
mov byte [esp + 0x27], 1
call dword [0x4a5638]
jmp 0x46fe96
push 0
lea eax, [esp + 0x8c]
push eax
push 0
push 0x30
mov byte [esp + 0x2f], 0
call dword [0x4a563c]
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 0x46feec
cmp byte [esp + 0x1f], 0
jne 0x46feec
cmp dword [esp + 0x70], 0x80000000
jne 0x46fed8
cmp dword [esp + 0x20], eax
jle 0x46fed8
mov dword [esp + 0x20], eax
cmp dword [esp + 0x6c], 0x80000000
jne 0x46feec
cmp dword [esp + 0x18], ecx
jle 0x46feec
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x2c], 0x80000001
jne 0x46ff05
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 0x46ff25
mov eax, ecx
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
add ebp, dword [esp + 0x8c]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [0x4a562c]
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 0x46ffe5
mov eax, dword [edi + 0xa8]
cmp eax, 0x80000001
jne 0x46ff64
mov eax, dword [esp + 0x20]
jmp 0x46ff6d
cmp eax, 0x80000000
je 0x46ff73
add eax, esi
mov dword [edi + 0xa8], eax
mov eax, dword [edi + 0xac]
cmp eax, 0x80000001
jne 0x46ff86
mov eax, dword [esp + 0x18]
jmp 0x46ff8f
cmp eax, 0x80000000
je 0x46ff95
add eax, ebx
mov dword [edi + 0xac], eax
mov eax, dword [edi + 0xb0]
cmp eax, 0x80000001
jne 0x46ffae
mov eax, dword [esp + 0x20]
mov dword [edi + 0xb0], eax
jmp 0x46ffbd
cmp eax, 0x80000000
je 0x46ffbd
add esi, eax
mov dword [edi + 0xb0], esi
mov eax, dword [edi + 0xb4]
cmp eax, 0x80000001
jne 0x46ffd6
mov eax, dword [esp + 0x18]
mov dword [edi + 0xb4], eax
jmp 0x46ffe5
cmp eax, 0x80000000
je 0x46ffe5
add ebx, eax
mov dword [edi + 0xb4], ebx
mov ebx, dword [esp + 0x20]
cmp ebx, ecx
jne 0x470015
cmp dword [esp + 0x18], edx
jne 0x470015
mov esi, dword [esp + 0x2c]
cmp esi, 0x80000000
je 0x470005
cmp esi, dword [esp + 0x5c]
jne 0x470019
cmp ebp, 0x80000000
je 0x470066
cmp ebp, dword [esp + 0x60]
je 0x470066
jmp 0x470019
mov esi, dword [esp + 0x2c]
mov ecx, dword [edi + 4]
push ecx
call dword [0x4a5424]
test eax, eax
je 0x470033
mov edx, dword [edi + 4]
push 9
push edx
call dword [0x4a5654]
mov ecx, dword [esp + 0x60]
cmp ebp, 0x80000000
je 0x470041
mov ecx, ebp
mov eax, dword [esp + 0x5c]
cmp esi, 0x80000000
je 0x47004f
mov eax, esi
mov edx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x1c]
push edx
push ebx
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call dword [0x4a5628]
cmp byte [esp + 0x27], 0
mov ebx, dword [0x4a5690]
mov ebp, dword [esp + 0x28]
jne 0x47009c
cmp ebp, 6
jne 0x470091
mov esi, dword [edi + 4]
call ebx
cmp eax, esi
jne 0x470091
push 0
push 0
push ebp
push esi
call dword [0x4a54ac]
mov ecx, dword [edi + 4]
push ebp
push ecx
call dword [0x4a5654]
lea eax, [ebp - 1]
cmp eax, 8
ja case.0x4700af.2
movzx edx, byte [eax + 0x470240]
jmp dword [edx*4 + 0x470238]
mov eax, dword [edi + 4]
push 2
push eax
call dword [0x4a54b0]
cmp eax, dword [edi + 4]
jne case.0x4700af.2
mov esi, dword [edi + 4]
call ebx
cmp esi, eax
je 0x4700db
mov eax, esi
call fcn.00483790
cmp byte [edi + 0xbc], 0
je case.0x4700af.2
mov byte [edi + 0xbc], 0
call dword [0x4a5684]
mov ebp, eax
test ebp, ebp
je 0x470161
cmp byte [edi + 0xb8], 0
je case.0x4700af.2
mov ebx, dword [0x4a56a0]
push ebp
call ebx
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x47012d
push ebp
call dword [0x4a569c]
mov ebp, eax
test ebp, ebp
je 0x470128
push ebp
call ebx
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jae case.0x4700af.2
mov edx, dword [edi + 0x18]
lea ecx, [esi + esi*4]
cmp dword [edx + ecx*4], ebp
lea ebx, [edx + ecx*4]
jne case.0x4700af.2
cmp esi, 0x2af8
je case.0x4700af.2
test ebx, ebx
je case.0x4700af.2
cmp byte [ebx + 4], 0x13
jne case.0x4700af.2
mov eax, dword [edi + 4]
push eax
call dword [0x4a54b4]
push 1
push ebx
call fcn.00473600
jmp case.0x4700af.2
mov ecx, dword [edi + 4]
push ecx
call dword [0x4a5618]
push 1
push 0xffffffffffffffff
mov byte [edi + 0xbb], 0
mov byte [edi + 0xbd], 0
call fcn.004014b0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x88
ret 4