Function at 0x46f3f0
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.0047d410
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 0x46f445
mov ebx, dword [eax + 0x10]
jmp 0x46f447
xor ebx, ebx
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x46f621
push ebx
call fcn.0046f720
add esp, 4
test eax, eax
je 0x46f621
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.00466870
mov ebp, eax
push ebp
push esi
mov dword [esp + 0x3c], ebp
call fcn.00475e00
mov eax, dword [edi]
mov ecx, dword [edi + 0x20]
push eax
push 0
push ecx
push ebp
push esi
call fcn.00472780
mov eax, dword [esp + 0x38]
add esp, 0x24
test eax, eax
jge 0x46f4e3
push esi
call fcn.0046f150
mov edx, dword [esp + 0x1c]
push 0x27
push edi
push ebp
push edx
push esi
mov ebx, eax
call fcn.00478590
mov eax, dword [esp + 0x58]
push ebx
push eax
mov esi, 1
call fcn.0046cd50
add esp, 0x20
jmp 0x46f6c7
push ebx
mov ebx, dword [esp + 0x48]
mov ecx, dword [ebx + 8]
push ecx
push esi
call fcn.0046e920
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.0046f6e0
mov edi, dword [edi + 8]
add esp, 0x14
test edi, edi
mov dword [esp + 0x1c], eax
je 0x46f61d
jmp 0x46f52b
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46f6c3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46f61d
mov ecx, dword [edi + 4]
cmp dword [ecx], ebp
jne 0x46f606
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.00476490
mov ecx, dword [esp + 0x34]
add esp, 0x10
cmp eax, ecx
jne 0x46f606
mov eax, dword [esp + 0x28]
test eax, eax
je 0x46f58e
cmp dword [edi + 0x24], 1
jne 0x46f606
mov al, byte [edi + 0x2c]
test al, al
je 0x46f606
push edi
push esi
call fcn.00476210
push esi
mov ebx, eax
call fcn.0046f150
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.0046c350
push ebp
push ebx
mov dword [esp + 0x40], 3
call fcn.0046cd50
mov eax, dword [esp + 0x78]
add esp, 0x30
test eax, eax
je 0x46f606
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 0x46f606
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.0046cd30
add esp, 0x10
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x46f527
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46f6c3
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 0x46f664
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.0046cd30
mov eax, dword [esp + 0x54]
add esp, 0x10
jmp 0x46f691
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 0x46f691
test byte [eax + 3], 8
jne 0x46f691
mov ebx, 1
xor edx, edx
cmp ebx, 1
sete dl
push edx
push edi
push eax
push esi
call fcn.0046ed30
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