Function at 0x46f330
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.0047d350
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 0x46f385
mov ebx, dword [eax + 0x10]
jmp 0x46f387
xor ebx, ebx
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x46f561
push ebx
call fcn.0046f660
add esp, 4
test eax, eax
je 0x46f561
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.004667b0
mov ebp, eax
push ebp
push esi
mov dword [esp + 0x3c], ebp
call fcn.00475d40
mov eax, dword [edi]
mov ecx, dword [edi + 0x20]
push eax
push 0
push ecx
push ebp
push esi
call fcn.004726c0
mov eax, dword [esp + 0x38]
add esp, 0x24
test eax, eax
jge 0x46f423
push esi
call fcn.0046f090
mov edx, dword [esp + 0x1c]
push 0x27
push edi
push ebp
push edx
push esi
mov ebx, eax
call fcn.004784d0
mov eax, dword [esp + 0x58]
push ebx
push eax
mov esi, 1
call fcn.0046cc90
add esp, 0x20
jmp 0x46f607
push ebx
mov ebx, dword [esp + 0x48]
mov ecx, dword [ebx + 8]
push ecx
push esi
call fcn.0046e860
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.0046f620
mov edi, dword [edi + 8]
add esp, 0x14
test edi, edi
mov dword [esp + 0x1c], eax
je 0x46f55d
jmp 0x46f46b
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46f603
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46f55d
mov ecx, dword [edi + 4]
cmp dword [ecx], ebp
jne 0x46f546
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.004763d0
mov ecx, dword [esp + 0x34]
add esp, 0x10
cmp eax, ecx
jne 0x46f546
mov eax, dword [esp + 0x28]
test eax, eax
je 0x46f4ce
cmp dword [edi + 0x24], 1
jne 0x46f546
mov al, byte [edi + 0x2c]
test al, al
je 0x46f546
push edi
push esi
call fcn.00476150
push esi
mov ebx, eax
call fcn.0046f090
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.0046c290
push ebp
push ebx
mov dword [esp + 0x40], 3
call fcn.0046cc90
mov eax, dword [esp + 0x78]
add esp, 0x30
test eax, eax
je 0x46f546
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 0x46f546
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.0046cc70
add esp, 0x10
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x46f467
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x46f603
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 0x46f5a4
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.0046cc70
mov eax, dword [esp + 0x54]
add esp, 0x10
jmp 0x46f5d1
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 0x46f5d1
test byte [eax + 3], 8
jne 0x46f5d1
mov ebx, 1
xor edx, edx
cmp ebx, 1
sete dl
push edx
push edi
push eax
push esi
call fcn.0046ec70
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