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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
movzx eax, byte [eax + 0x9f]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x20]
and eax, 0x4000
xor ecx, ecx
or eax, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
je 0x46e62a
cmp byte [edi + 0x2b], cl
jne 0x46e62a
mov ecx, dword [edi + 0x3c]
test ecx, ecx
mov eax, 0xffff8000
mov dword [esp + 0x14], eax
je 0x46e14e
mov edx, dword [esi + 0x10]
xor eax, eax
add edx, 0xc
cmp dword [edx], ecx
mov dword [esp + 0x14], eax
je 0x46e14e
mov edi, edi
add edx, 0x10
add eax, 1
cmp dword [edx], ecx
jne 0x46e140
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x10]
mov esi, dword [edi + 0x30]
shl eax, 4
test esi, esi
mov edx, dword [eax + ecx]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
je 0x46e452
xor eax, eax
cmp dword [ebp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
je 0x46e1b8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
test edx, edx
mov eax, dword [esi + 8]
jne 0x46e18f
neg eax
sbb eax, eax
jmp 0x46e198
test eax, eax
je 0x46e19c
call fcn.0041cd90
test eax, eax
je 0x46e1b8
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
push edx
mov eax, esi
call fcn.0046dfb0
add esp, 4
test eax, eax
je 0x46e447
mov edi, dword [ebp + 8]
cmp byte [edi + 0x9f], 0
je 0x46e1db
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x10]
push eax
push ecx
call fcn.00460170
add esp, 8
jmp 0x46e1ef
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 8]
push edx
push eax
push 0
push edi
call fcn.004603d0
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x46e38c
lea ecx, [esp + 0x1c]
push ecx
push esi
push ebx
push edi
lea eax, [esp + 0x30]
call fcn.0046c990
add esp, 0x10
test eax, eax
jne 0x46e38c
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x46e228
mov edx, dword [esi + 0x24]
mov dword [esp + 0x30], edx
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x1c]
xor edi, edi
cmp dword [esi + 0x14], edi
mov dword [esp + 0x18], eax
jle 0x46e2aa
jmp 0x46e240
mov edx, dword [ebp + 0xc]
movsx edx, word [edx + 0x20]
cmp dword [eax + edi*4], edx
jne 0x46e253
mov dword [eax + edi*4], 0xffffffff
mov edx, dword [esp + 0x10]
cmp dword [edx + 0x16c], 0
je 0x46e2a2
test ecx, ecx
je 0x46e26d
mov eax, dword [ecx + 4]
movsx eax, word [eax + edi*2]
jmp 0x46e271
movsx eax, word [ebx + 0x20]
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x14]
shl eax, 4
mov eax, dword [eax + ecx]
push edx
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp + 8]
call fcn.0045f800
xor ecx, ecx
add esp, 0xc
cmp eax, 2
mov eax, dword [esp + 0x18]
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
add edi, 1
cmp edi, dword [esi + 0x14]
jl 0x46e240
mov ecx, dword [ebp + 8]
mov edi, 1
cmp dword [esp + 0x14], edi
je 0x46e2e7
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov edx, dword [esp + 0x34]
mov eax, dword [eax + edx + 4]
cmp byte [eax + 9], 0
je 0x46e2e7
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x14]
mov eax, dword [esp + 0x14]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.0045fa20
mov ecx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [ebp + 0x10]
add dword [ecx + 0x28], edi
test eax, eax
je 0x46e319
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [ebp + 8]
push esi
push eax
push ebx
push ecx
push edx
call fcn.0046cc60
mov ecx, dword [ebp + 8]
add esp, 0x24
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x46e36f
mov eax, dword [ecx + 0x78]
test eax, eax
jne 0x46e329
mov eax, ecx
mov eax, dword [eax + 0x80]
test eax, eax
je 0x46e34b
mov eax, dword [eax]
cmp eax, dword [esi + 0x1c]
jne 0x46e340
cmp byte [esi + 0x19], 8
je 0x46e36f
cmp eax, dword [esi + 0x20]
jne 0x46e34b
cmp byte [esi + 0x1a], 8
je 0x46e36f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push edi
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [ebp + 8]
push esi
push edx
push ebx
push eax
push ecx
call fcn.0046cc60
add esp, 0x24
cmp dword [esp + 0x20], 0
je 0x46e447
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
call fcn.00419270
jmp 0x46e447
cmp dword [esp + 0x2c], 0
je 0x46e62a
mov edx, dword [esp + 0x10]
cmp byte [edx + 0x57], 0
jne 0x46e62a
test ebx, ebx
jne 0x46e447
mov ebx, edi
mov eax, dword [ebx + 8]
test eax, eax
jne 0x46e3cc
cmp dword [ebx + 0x78], eax
jne 0x46e3c7
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x46e3c7
mov byte [ebx + 0x17], 1
call fcn.0043c140
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
mov edx, dword [ecx + 0x6c]
lea ecx, [edx + eax + 1]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x1c], ecx
jle 0x46e42c
lea edx, [esi + 0x24]
mov dword [esp + 0x24], edx
nop
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edi, dword [esi]
push 0
push eax
mov ax, word [ecx]
call fcn.00461390
movsx edx, ax
mov eax, dword [ebp + 0x10]
lea ecx, [edx + eax + 1]
mov edx, dword [esp + 0x28]
push ecx
push 0x32
push edx
call fcn.0043c3f0
add dword [esp + 0x38], 8
add ebx, 1
add esp, 0x14
cmp ebx, dword [esi + 0x14]
jl 0x46e3f0
movzx eax, byte [esi + 0x18]
mov ecx, dword [esp + 0x20]
push 0
push 0xffffffffffffffff
push eax
push 0x9e
push ecx
call fcn.0043c3f0
add esp, 0x14
mov esi, dword [esi + 4]
test esi, esi
jne 0x46e16a
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, dword [esi + 0x3c]
push eax
add ecx, 0x38
xor eax, eax
call fcn.0041e520
mov ebx, dword [eax + 8]
xor edi, edi
add esp, 4
cmp ebx, edi
je 0x46e62a
jmp 0x46e47a
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
cmp eax, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
je 0x46e4a1
mov edx, dword [ebp + 0x1c]
push edx
push eax
push esi
mov eax, ebx
call fcn.0046dff0
add esp, 0xc
test eax, eax
je 0x46e61d
cmp byte [ebx + 0x18], 0
jne 0x46e4ca
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x20]
and eax, 0x80000
xor ecx, ecx
or eax, ecx
jne 0x46e4ca
mov eax, dword [ebp + 8]
cmp dword [eax + 0x78], edi
jne 0x46e4ca
cmp byte [eax + 0x14], cl
je 0x46e61d
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x24]
push ecx
push ebx
push esi
push edx
lea eax, [esp + 0x2c]
call fcn.0046c990
add esp, 0x10
test eax, eax
je 0x46e502
cmp dword [esp + 0x2c], edi
je 0x46e62a
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x57], 0
jne 0x46e62a
jmp 0x46e61d
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push 0
push 0x50
call fcn.00419650
mov edi, eax
add esp, 8
test edi, edi
je 0x46e609
push 0x48
lea esi, [edi + 8]
push 0
push esi
mov dword [edi + 4], 1
mov dword [edi], 1
call sub.ntdll.dll_memset
mov dword [edi + 0x34], 0xffffffff
mov eax, dword [edi]
lea edx, [eax + eax*8]
lea eax, [edi + edx*8 - 0x40]
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov eax, dword [ebx]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov dword [esi + 8], edx
mov ecx, 1
add dword [eax + 0x18], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x28]
mov dword [esi + 0x2c], edx
add dword [eax + 0x28], ecx
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x46e599
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0xc]
push ecx
push ebx
push edx
push eax
mov eax, dword [ebp + 8]
push edi
call fcn.0046d6a0
add esp, 0x1c
cmp dword [ebp + 0x10], 0
je 0x46e5f5
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
push 1
setne cl
push eax
mov eax, dword [ebp + 0xc]
movzx edx, byte [ecx + ebx + 0x19]
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
push ebx
push edx
push eax
mov eax, dword [ebp + 8]
push edi
call fcn.0046d6a0
add esp, 0x1c
cmp byte [ebx + 0x18], 0
jne 0x46e5f5
mov eax, dword [esp + 0x34]
cmp eax, 0xa
je 0x46e5f5
cmp eax, 8
je 0x46e5f5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x78]
test eax, eax
jne 0x46e5f1
mov eax, ecx
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x10]
push edi
mov dword [esi + 8], 0
call fcn.004662e0
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x46e61d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
call fcn.00419270
mov ebx, dword [ebx + 0xc]
xor edi, edi
cmp ebx, edi
jne 0x46e477
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret