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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 9]
test byte [eax + 0x11], 1
push esi
push edi
je 0x46c478
mov eax, dword [ebp + 8]
mov dword [eax], 2
jmp 0x46c8b1
push dword [ebx + 0xd]
mov esi, 0x104
push 0x5e03d0
lea edi, [esp + 0xa0]
call fcn.004a9039
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
pop ecx
pop ecx
push 0
lea ecx, [esp + 0x9c]
push ecx
mov ecx, edi
call dword [eax + 0x20]
mov eax, dword [edi]
push 1
push 0x5e03dc
mov ecx, edi
call dword [eax + 0x20]
lea esi, [esp + 0x60]
call fcn.0046a023
movzx eax, byte [ebx]
push eax
push edi
mov eax, esi
push eax
lea edi, [esp + 0x34]
call fcn.0046a10d
xor eax, eax
inc eax
cmp dword [esp + 0x28], eax
jne 0x46c4e2
mov edi, dword [ebp + 8]
mov dword [edi], eax
jmp 0x46c8a6
cmp dword [esp + 0x28], 0
je 0x46c4f7
mov edi, dword [ebp + 8]
mov dword [edi], 2
jmp 0x46c8a6
mov edi, dword [ebx + 1]
mov eax, dword [ebx + 5]
mov esi, 0xf81f
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], eax
call fcn.0058f8c4
mov dword [esp + 0x48], eax
add eax, 0xf
and eax, 0xfffffff0
push esi
mov dword [esp + 0x50], eax
call fcn.0058f8c4
fldz
lea esi, [eax + 0xf]
fst qword [esp + 0x58]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
and esi, 0xfffffff0
cmp eax, edi
pop ecx
pop ecx
mov dword [esp + 0x28], esi
jbe 0x46c560
mov ecx, eax
fstp st(0)
sub ecx, edi
test ecx, ecx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
jge 0x46c55a
fadd qword [0x60d1e8]
fdivr qword [0x60d8a0]
push 0xd
fstp qword [esp + 0x5c]
sub eax, edi
pop ecx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x46c575
mov dword [esp + 0x1c], ecx
and dword [esp + 0x14], 0
xor ecx, ecx
push 4
pop edx
mov eax, 0x4000
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0058f8c4
pop ecx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x1c]
test edx, edx
jbe 0x46c5d0
push dword [esp + 0x48]
lea eax, [esp + 0x90]
push eax
mov eax, edi
lea esi, [esp + 0x68]
call fcn.00451e5a
mov ebx, dword [eax]
test ebx, ebx
jne 0x46c861
add edi, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x10]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x14]
imul eax, eax, 0x24c
test eax, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], eax
jle 0x46c62b
mov esi, dword [esp + 0x14]
mov eax, 0x2000
cmp esi, eax
jle 0x46c5f5
mov esi, eax
mov edi, dword [esp + 0x38]
lea eax, [esi + esi]
push eax
push dword [esp + 0x30]
call fcn.0055ead1
mov ecx, dword [ebx + 9]
mov eax, dword [ecx]
push esi
push dword [esp + 0x30]
call dword [eax + 4]
sub dword [esp + 0x14], esi
cmp dword [esp + 0x14], 0
mov eax, edi
lea eax, [eax + esi*4]
mov dword [esp + 0x38], eax
jg 0x46c5e6
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x1c], 0
je 0x46c83c
mov eax, dword [esp + 0x3c]
push 0x1b
sub eax, edi
pop ecx
cmp eax, ecx
mov dword [esp + 0x14], eax
jbe 0x46c64b
mov dword [esp + 0x14], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
je 0x46c65d
and dword [esp + 0x14], 0
push 0x9c40
push ecx
mov ecx, dword [esp + 0x7c]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call dword [eax + 8]
mov ebx, dword [esp + 0x4c]
test ebx, ebx
jne 0x46c861
push 0x7d0
push ebx
push ebx
push 6
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x78]
mov edi, esi
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
call fcn.0046a6ed
mov ebx, dword [eax]
test ebx, ebx
jne 0x46c861
lea ecx, [esp + 0x23]
lea esi, [esp + 0x22]
lea edi, [esp + 0x13]
lea eax, [esp + 0x60]
call fcn.0046a41e
test al, al
je 0x46c6ea
cmp byte [esp + 0x13], 1
ja 0x46c85e
mov edx, dword [esp + 0x14]
test edx, edx
jbe 0x46c71f
push dword [esp + 0x28]
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x98]
push eax
mov eax, edi
lea esi, [esp + 0x68]
call fcn.00451e5a
mov ebx, dword [eax]
test ebx, ebx
jne 0x46c861
add edi, dword [esp + 0x14]
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x48]
imul eax, eax, 0x24c
mov ebx, eax
jmp 0x46c760
mov eax, 0x2000
cmp ebx, eax
mov esi, ebx
jle 0x46c73e
mov esi, eax
lea eax, [esi + esi]
push eax
push dword [esp + 0x30]
call fcn.0055ead1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 9]
mov eax, dword [ecx]
push esi
push dword [esp + 0x30]
call dword [eax + 4]
sub ebx, esi
lea edi, [edi + esi*4]
test ebx, ebx
jg 0x46c731
cmp dword [esp + 0x14], 0
je 0x46c83c
fld qword [esp + 0x58]
mov esi, dword [ebp + 0xc]
fadd qword [esp + 0x50]
mov eax, dword [esi]
push ecx
push ecx
fstp qword [esp + 0x58]
mov ecx, esi
fld qword [esp + 0x58]
fstp qword [esp]
call dword [eax + 0x24]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x24]
push 0x1b
pop ecx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x46c7a5
mov dword [esp + 0x1c], ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
test al, al
je 0x46c7b4
and dword [esp + 0x1c], 0
push 0x9c40
push ecx
mov ecx, dword [esp + 0x7c]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 8]
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x46c861
push 0x7d0
push ebx
push ebx
push 6
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x78]
mov edi, esi
call fcn.0046a6ed
mov ebx, dword [eax]
test ebx, ebx
jne 0x46c861
lea ecx, [esp + 0x23]
lea esi, [esp + 0x22]
lea edi, [esp + 0x13]
lea eax, [esp + 0x60]
call fcn.0046a41e
test al, al
je 0x46c821
cmp byte [esp + 0x13], 1
ja 0x46c85e
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x46c861
mov edi, dword [esp + 0x24]
mov ebx, dword [ebp + 0x10]
mov esi, dword [esp + 0x28]
jmp 0x46c598
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
lea eax, [esp + 0x18]
je 0x46c855
mov dword [esp + 0x18], 1
jmp 0x46c85a
and dword [esp + 0x18], 0
mov ebx, dword [eax]
jmp 0x46c861
push 2
pop ebx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x46c883
cmp ebx, 2
jne 0x46c883
mov eax, dword [ebp + 0x10]
mov byte [eax + 0x11], 1
mov edi, dword [ebp + 8]
push dword [esp + 0x2c]
mov dword [edi], ebx
call fcn.0058f8c9
push dword [esp + 0x44]
call fcn.0058f8c9
push dword [esp + 0x4c]
call fcn.0058f8c9
add esp, 0xc
lea esi, [esp + 0x60]
call fcn.0046a074
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc