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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
cmp dword [ebp + 0x10], 1
push ebx
push esi
push edi
mov esi, eax
jne 0x46f5ca
cmp dword [ebp + 0x18], 4
jne 0x46f5ca
mov ebx, dword [ebp + 8]
mov edi, ebx
call fcn.0046ee98
test al, al
jne 0x46ef3b
mov eax, 0x8007000e
jmp 0x46f5cf
and dword [esp + 0x50], 0
and dword [esp + 0x54], 0
test esi, esi
mov byte [esp + 0xf], 0
je 0x46ef74
mov eax, dword [esi]
test eax, eax
je 0x46ef74
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
ja 0x46ef74
jb 0x46ef6f
cmp ecx, 0x1000000
ja 0x46ef74
mov byte [esp + 0xf], 1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
lea esi, [ebx + 0x24]
mov dword [esp + 0x28], esi
call fcn.004642df
lea eax, [ebx + 0x10]
mov dword [esp + 0x7c], eax
call fcn.004653f0
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 4]
lea esi, [ebx + 0x4c]
mov dword [esp + 0x44], esi
call fcn.004642df
lea eax, [ebx + 0x38]
mov dword [esp + 0x84], eax
call fcn.004653f0
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 8]
lea esi, [ebx + 0x74]
mov dword [esp + 0x3c], esi
call fcn.004642df
lea eax, [ebx + 0x60]
mov dword [esp + 0x80], eax
call fcn.004653f0
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 0xc]
lea esi, [ebx + 0xb4]
mov dword [esp + 0x40], esi
call fcn.004642df
lea esi, [ebx + 0x88]
lea eax, [esi + 0x18]
call fcn.004653f0
or dword [esi + 0x10], 0xffffffff
xor edx, edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov byte [esi + 4], dl
mov dword [esp + 0x14], edx
lea edx, [esp + 0x14]
mov dword [esi], 1
mov eax, 0x400
push edx
lea edi, [ebx + 0xc8]
mov ecx, 0x102
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
push 0x4c8248
push eax
call dword [ecx]
xor edi, edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov byte [esp + 0xc], 0
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
and dword [esp + 0x10], 0
mov eax, 0x20000
jmp 0x46f0b8
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx]
lea edx, [esp + 0x8c]
push edx
push eax
mov eax, dword [ebx + 8]
add eax, dword [esp + 0x18]
add eax, edi
push eax
push dword [esp + 0x78]
call dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x46f3a4
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x46f0bc
add dword [esp + 0x10], eax
mov eax, 0x20000
sub eax, dword [esp + 0x10]
sub eax, edi
jne 0x46f074
mov eax, dword [esp + 0x10]
add eax, edi
cmp eax, 5
mov dword [esp + 0x2c], eax
jb 0x46f405
and dword [esp + 0x10], 0
jmp 0x46f0d9
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov edi, dword [esp + 0x10]
mov bl, byte [edi + eax]
mov eax, dword [esp + 0x7c]
mov byte [esp + 0xd], bl
call fcn.0046ecc2
mov al, bl
and al, 0xfe
cmp al, 0xe8
je 0x46f111
cmp byte [esp + 0xc], 0xf
jne 0x46f107
mov al, bl
and al, 0xf0
cmp al, 0x80
je 0x46f111
inc edi
mov dword [esp + 0x10], edi
jmp 0x46f339
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, edi
movzx edx, byte [eax + 3]
mov cl, byte [eax + 4]
movzx ebx, byte [eax + 2]
movzx eax, byte [eax + 1]
mov dh, cl
mov byte [esp + 0xe], cl
shl edx, 8
or edx, ebx
shl edx, 8
or eax, edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
add eax, edi
lea edx, [eax + edx + 5]
xor eax, eax
cmp dword [esp + 0x14], eax
mov dword [esp + 0x88], edx
je 0x46f296
xor ebx, ebx
add edi, dword [esp + 0x48]
adc ebx, dword [esp + 0x4c]
cmp dword [esp + 0x1c], ebx
ja 0x46f219
jae 0x46f20f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x90]
push edx
push dword [esp + 0x78]
push dword [esp + 0x78]
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0x60], eax
jne 0x46f1c7
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x90]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x94]
adc dword [esp + 0x1c], eax
add dword [esp + 0x70], 1
adc dword [esp + 0x74], 0
jmp 0x46f203
cmp dword [esp + 0x60], 1
je 0x46f1dc
cmp dword [esp + 0x60], 0x80004001
jne 0x46f50b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46f1ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esp + 0x14], 0
and dword [esp + 0x30], 0
and dword [esp + 0x34], 0
or dword [esp + 0x18], 0xffffffff
or dword [esp + 0x1c], 0xffffffff
cmp dword [esp + 0x1c], ebx
jb 0x46f173
ja 0x46f219
cmp dword [esp + 0x18], edi
jb 0x46f173
xor eax, eax
cmp dword [esp + 0x14], eax
jne 0x46f24e
cmp byte [esp + 0xf], al
je 0x46f240
cmp eax, dword [esp + 0x54]
ja 0x46f2c4
jb 0x46f2ab
mov eax, dword [esp + 0x88]
cmp eax, dword [esp + 0x50]
jmp 0x46f2a9
cmp byte [esp + 0xe], 0
je 0x46f2ab
cmp byte [esp + 0xe], 0xff
jmp 0x46f2c2
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
sbb ecx, dword [esp + 0x34]
mov dword [esp + 0x64], ecx
jne 0x46f240
cmp eax, 0x1000000
ja 0x46f240
mov eax, dword [esp + 0x24]
cdq
add eax, edi
adc edx, ebx
add eax, 5
adc edx, 0
cmp edx, dword [esp + 0x34]
jb 0x46f2c4
ja 0x46f288
cmp eax, dword [esp + 0x30]
jb 0x46f2c4
cmp edx, dword [esp + 0x1c]
ja 0x46f2c4
jb 0x46f2ab
cmp eax, dword [esp + 0x18]
jmp 0x46f2a9
cmp byte [esp + 0xf], 0
je 0x46f2bb
cmp eax, dword [esp + 0x54]
ja 0x46f2c4
jb 0x46f2ab
cmp edx, dword [esp + 0x50]
jae 0x46f2c4
mov cl, 1
cmp byte [esp + 0xd], 0xe8
jne 0x46f2c8
movzx eax, byte [esp + 0xc]
jmp 0x46f2d7
test cl, cl
je 0x46f2ab
cmp cl, 0xff
je 0x46f2ab
xor cl, cl
jmp 0x46f2ad
xor eax, eax
cmp byte [esp + 0xd], 0xe9
setne al
add eax, 0x100
test cl, cl
mov ecx, dword [ebp + 8]
lea ecx, [ecx + eax*4 + 0xc8]
mov eax, esi
je 0x46f32e
push 1
call fcn.0046fb0a
add dword [esp + 0x10], 5
cmp byte [esp + 0xd], 0xe8
mov eax, dword [esp + 0x84]
je 0x46f308
mov eax, dword [esp + 0x80]
push 0x18
mov dword [esp + 0x64], eax
pop edi
mov ebx, dword [esp + 0x88]
mov eax, dword [esp + 0x60]
mov ecx, edi
shr ebx, cl
call fcn.0046ecc2
sub edi, 8
jns 0x46f30f
mov al, byte [esp + 0xe]
jmp 0x46f33d
push 0
call fcn.0046fb0a
inc dword [esp + 0x10]
mov al, byte [esp + 0xd]
mov edi, dword [esp + 0x10]
mov byte [esp + 0xc], al
mov eax, dword [esp + 0x2c]
add eax, 0xfffffffb
cmp edi, eax
jbe 0x46f0d6
add dword [esp + 0x5c], edi
add dword [esp + 0x48], edi
mov eax, dword [ebp + 0x1c]
push 0
pop ebx
adc dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x46f382
mov ecx, dword [eax]
push ebx
lea edx, [esp + 0x4c]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [esp + 0x24], eax
jne 0x46f56b
xor ecx, ecx
jmp 0x46f394
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dl, byte [eax + edi]
mov byte [eax + ecx], dl
inc ecx
inc edi
cmp edi, dword [esp + 0x2c]
jb 0x46f386
mov ebx, dword [ebp + 8]
mov edi, ecx
jmp 0x46f068
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, edi
je 0x46f3b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
cmp eax, edi
je 0x46f3c6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
cmp eax, edi
je 0x46f3d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
cmp eax, edi
je 0x46f3ea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
cmp eax, edi
je 0x46f3fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
mov eax, dword [esp + 0x24]
jmp 0x46f5cf
xor edi, edi
test eax, eax
jbe 0x46f467
mov eax, dword [ebx + 8]
mov bl, byte [edi + eax]
mov eax, dword [esp + 0x7c]
call fcn.0046ecc2
cmp bl, 0xe8
jne 0x46f426
movzx eax, byte [esp + 0xc]
jmp 0x46f446
cmp bl, 0xe9
jne 0x46f432
mov eax, 0x100
jmp 0x46f446
cmp byte [esp + 0xc], 0xf
jne 0x46f459
mov al, bl
and al, 0xf0
cmp al, 0x80
jne 0x46f459
mov eax, 0x101
mov ecx, dword [ebp + 8]
lea ecx, [ecx + eax*4 + 0xc8]
push 0
mov eax, esi
call fcn.0046fb0a
inc edi
cmp edi, dword [esp + 0x2c]
mov byte [esp + 0xc], bl
mov ebx, dword [ebp + 8]
jb 0x46f40b
mov eax, dword [esp + 0x7c]
call fcn.004654bc
test eax, eax
jne 0x46f4aa
mov eax, dword [esp + 0x84]
call fcn.004654bc
test eax, eax
jne 0x46f4aa
mov eax, dword [esp + 0x80]
call fcn.004654bc
test eax, eax
jne 0x46f4aa
push 5
pop edi
call fcn.0046ecf5
dec edi
jne 0x46f497
lea eax, [ebx + 0xa0]
call fcn.004654bc
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46f4ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [esp + 0x28]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x46f4ce
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov edi, dword [esp + 0x44]
mov eax, dword [edi]
cmp eax, ebx
je 0x46f4e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
cmp eax, ebx
je 0x46f4f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov edi, dword [esp + 0x40]
mov eax, dword [edi]
cmp eax, ebx
je 0x46f504
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi], ebx
mov eax, esi
jmp 0x46f5cf
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46f519
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
test eax, eax
je 0x46f52c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi], 0
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
test eax, eax
je 0x46f53f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi], 0
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
test eax, eax
je 0x46f552
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi], 0
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
test eax, eax
je 0x46f565
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [esi], 0
mov eax, dword [esp + 0x60]
jmp 0x46f5cf
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46f579
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
cmp eax, ebx
je 0x46f58b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov esi, dword [esp + 0x44]
mov eax, dword [esi]
cmp eax, ebx
je 0x46f59d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
cmp eax, ebx
je 0x46f5af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
cmp eax, ebx
je 0x46f3fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], ebx
jmp 0x46f3fc
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18