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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x44]
push edi
mov eax, dword [esi + 0x48]
push esi
mov dword [esp + 0x1c], eax
inc eax
mov dword [esi + 0x48], eax
xor eax, eax
test ebp, ebp
sete al
mov dword [esp + 0x14], 0
mov dword [esp + 0x2c], eax
call fcn.0047caf0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
add esp, 4
mov cx, word [eax + 2]
and ecx, 0x800
cmp ecx, 0x800
jne 0x46eb25
mov ebx, dword [eax + 0x10]
jmp 0x46eb27
xor ebx, ebx
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x46ed01
push ebx
call fcn.0046ee00
add esp, 4
test eax, eax
je 0x46ed01
mov edx, dword [ebx + 0x28]
mov ecx, dword [ebx]
mov eax, dword [esi]
mov edi, dword [edx + 0x18]
mov edx, dword [ecx + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], edi
mov ebx, dword [edx]
mov edx, dword [edi + 0x40]
push edx
push eax
movsx ecx, word [ebx + 0x1c]
mov dword [esp + 0x1c], ecx
call fcn.00465f50
mov ebp, eax
push ebp
push esi
mov dword [esp + 0x3c], ebp
call fcn.004754e0
mov eax, dword [edi]
mov ecx, dword [edi + 0x20]
push eax
push 0
push ecx
push ebp
push esi
call fcn.00471e60
mov eax, dword [esp + 0x38]
add esp, 0x24
test eax, eax
jge 0x46ebc3
push esi
call fcn.0046e830
mov edx, dword [esp + 0x1c]
push 0x27
push edi
push ebp
push edx
push esi
mov ebx, eax
call fcn.00477c70
mov eax, dword [esp + 0x58]
push ebx
push eax
mov esi, 1
call fcn.0046c430
add esp, 0x20
jmp 0x46eda7
push ebx
mov ebx, dword [esp + 0x48]
mov ecx, dword [ebx + 8]
push ecx
push esi
call fcn.0046e000
mov ebp, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov dword [esp + 0x30], eax
lea eax, [ebp + ebp*2]
shl eax, 3
mov dword [esp + 0x40], eax
mov al, byte [edx + eax + 0x15]
push eax
push ebx
call fcn.0046edc0
mov edi, dword [edi + 8]
add esp, 0x14
test edi, edi
mov dword [esp + 0x1c], eax
je 0x46ecfd
jmp 0x46ec0b
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46eda3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46ecfd
mov ecx, dword [edi + 4]
cmp dword [ecx], ebp
jne 0x46ece6
mov edx, dword [edi + 0x20]
push 0
mov eax, dword [edx]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
mov cl, byte [edx + 0x4d]
push ecx
push eax
call fcn.00475b70
mov ecx, dword [esp + 0x34]
add esp, 0x10
cmp eax, ecx
jne 0x46ece6
mov eax, dword [esp + 0x28]
test eax, eax
je 0x46ec6e
cmp dword [edi + 0x24], 1
jne 0x46ece6
mov al, byte [edi + 0x2c]
test al, al
je 0x46ece6
push edi
push esi
call fcn.004758f0
push esi
mov ebx, eax
call fcn.0046e830
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [edi + 0x28]
push 0xfffffffffffffff0
push ebx
mov ebx, dword [esp + 0x54]
push edx
push eax
push ecx
push 0x27
push ebx
call fcn.0046ba30
push ebp
push ebx
mov dword [esp + 0x40], 3
call fcn.0046c430
mov eax, dword [esp + 0x78]
add esp, 0x30
test eax, eax
je 0x46ece6
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, dword [edx + 4]
mov dl, byte [eax + ecx + 0x14]
test dl, dl
jne 0x46ece6
mov eax, dword [esi + 0x4c]
mov edx, dword [esp + 0x48]
inc eax
mov dword [esi + 0x4c], eax
mov dword [edx], eax
push eax
push 0
mov eax, ebx
push 0xa
push eax
call fcn.0046c410
add esp, 0x10
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x46ec07
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46eda3
mov ebp, dword [esp + 0x48]
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1bc]
xor edi, edi
mov dword [esp + 0x34], ecx
test ebp, ebp
mov dword [esp + 0x38], edx
mov ebx, 2
je 0x46ed44
mov ecx, dword [esi + 0x4c]
mov eax, dword [esp + 0x40]
inc ecx
mov edi, ecx
mov dword [esi + 0x4c], ecx
push edi
push 0
push 0xa
push eax
mov dword [ebp], edi
call fcn.0046c410
mov eax, dword [esp + 0x54]
add esp, 0x10
jmp 0x46ed71
mov eax, dword [esp + 0x44]
mov dword [esi + 0x1b8], 0
mov dword [esi + 0x1bc], 0x3ff00000
mov ecx, dword [eax + 8]
cmp word [ecx + 0x1c], 0
jge 0x46ed71
test byte [eax + 3], 8
jne 0x46ed71
mov ebx, 1
xor edx, edx
cmp ebx, 1
sete dl
push edx
push edi
push eax
push esi
call fcn.0046e410
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add esp, 0x10
mov dword [esi + 0x1b8], eax
mov dword [esi + 0x1bc], ecx
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
pop edi
mov dword [edx + 0x18], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret