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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb24
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x54], ecx
push ebx
mov dword [esp + 0x34], ebx
call dword [0x1db1f8]
mov edi, eax
mov dword [esp + 0x4c], edi
test edi, edi
je 0x10004b76
push edi
call dword [0x1db068]
mov ebx, eax
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x10004b62
mov esi, dword [0x1db08c]
push 8
push edi
call esi
push 0xa
push edi
mov dword [esp + 0x14], eax
call esi
mov esi, eax
push esi
push dword [esp + 0x10]
mov dword [esp + 0x34], esi
push edi
call dword [0x1db06c]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10004b5b
push eax
push ebx
call dword [0x1db064]
push 0x5a
push edi
mov dword [esp + 0x44], eax
call dword [0x1db08c]
push 0x48
push eax
push 0x12
call dword [0x1db19c]
push 0
push 0
push 4
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
neg eax
push 0
push eax
mov dword [esp + 0x48], eax
call dword [0x1db094]
mov dword [esp + 0x48], eax
test eax, eax
je 0x10004b45
push eax
push ebx
call dword [0x1db064]
push 0
push ebx
mov dword [esp + 0x58], eax
call dword [0x1db084]
push 0xc8
push ebx
call dword [0x1db098]
push 2
call dword [0x1db07c]
mov ecx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
call dword [0x1db214]
mov ecx, esi
mov eax, 0x66666667
imul ecx, dword [esp + 0xc]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x100048bb
call dword [0x1db1a4]
mov ecx, dword [esp + 0xc]
mov dword [0x1e3cd4], eax
xor eax, eax
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x100048bb
jmp 0x100047c0
mov dword [esp + 0x34], 0
test esi, esi
je 0x100048aa
imul eax, dword [0x1e3cd4], 0x343fd
add eax, 0x269ec3
mov ecx, eax
imul eax, eax, 0x343fd
sar ecx, 0x10
and ecx, 0x7fff
mov dword [esp + 0x44], ecx
add eax, 0x269ec3
mov ebx, eax
imul esi, eax, 0x343fd
sar ebx, 0x10
mov eax, 0x66666667
and ebx, 0x7fff
imul ebx
add esi, 0x269ec3
sar edx, 3
mov ecx, edx
mov dword [0x1e3cd4], esi
shr ecx, 0x1f
add ecx, edx
sar esi, 0x10
mov al, cl
and esi, 0x7fff
shl cl, 2
add al, cl
mov ecx, 0x14
shl al, 2
sub bl, al
mov eax, esi
cdq
idiv ecx
movzx edi, bl
mov ebx, dword [esp + 0x44]
movzx eax, dl
shl eax, 8
or edi, eax
mov esi, dword [esp + 0x34]
mov eax, 0x66666667
shl edi, 8
imul ebx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov al, cl
shl cl, 2
add al, cl
shl al, 3
sub bl, al
movzx eax, bl
mov ebx, dword [esp + 0x40]
or edi, eax
push edi
push esi
push dword [esp + 0x30]
push ebx
call dword [0x1db070]
inc esi
mov dword [esp + 0x34], esi
cmp esi, dword [esp + 0x2c]
jb 0x100047d0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
inc eax
mov dword [esp + 0x28], eax
cmp eax, ecx
jb 0x100047c0
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
movdqa xmm0, xmmword [0x1e1730]
cdq
sub eax, edx
mov dword [esp + 0x68], 0x41524344
mov ecx, eax
mov dword [esp + 0x6c], 0x332042
mov eax, esi
sar ecx, 1
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
lea eax, [esp + 0x14]
sub ecx, dword [esp + 0x10]
push 0x11
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x64]
mov dword [esp + 0x24], ecx
push eax
push ebx
movdqu xmmword [esp + 0x6c], xmm0
call dword [0x1db1f4]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x80
push eax
lea eax, [esp + 0x134]
push eax
call dword [0x1db04c]
test eax, eax
je 0x1000499f
push 0x1e02c0
lea eax, [esp + 0x134]
push eax
call dword [0x1db138]
test eax, eax
je 0x10004960
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x334]
push 0x1e0374
push eax
call dword [0x1db250]
add esp, 0xc
jmp 0x10004976
lea eax, [esp + 0x330]
push 0x1e0388
push eax
call dword [0x1db250]
add esp, 8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
neg ecx
push 0x11
lea eax, [eax + ecx*2]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x33c]
push eax
push ebx
call dword [0x1db1f0]
movdqa xmm0, xmmword [0x1e1790]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
neg ecx
movdqu xmmword [esp + 0x70], xmm0
push 0x11
movdqa xmm0, xmmword [0x1e1780]
movdqu xmmword [esp + 0x84], xmm0
lea eax, [eax + ecx*2]
mov dword [esp + 0xd4], 0x4f545059
movdqa xmm0, xmmword [0x1e1740]
movdqu xmmword [esp + 0x94], xmm0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
movdqa xmm0, xmmword [0x1e1770]
push eax
movdqu xmmword [esp + 0xa8], xmm0
lea eax, [esp + 0x78]
mov word [esp + 0xdc], 0x52
movdqa xmm0, xmmword [0x1e17a0]
push 0xffffffffffffffff
movdqu xmmword [esp + 0xbc], xmm0
push eax
movdqa xmm0, xmmword [0x1e1750]
push ebx
movdqu xmmword [esp + 0xd4], xmm0
call dword [0x1db1f4]
mov ecx, dword [esp + 0x10]
movdqa xmm0, xmmword [0x1e17d0]
movdqu xmmword [esp + 0xd8], xmm0
push 0x11
movdqa xmm0, xmmword [0x1e1760]
lea eax, [ecx*4]
sub eax, ecx
mov word [esp + 0x12c], 0x72
neg eax
add dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
movdqu xmmword [esp + 0xec], xmm0
push eax
movdqa xmm0, xmmword [0x1e1720]
lea eax, [esp + 0xe0]
movdqu xmmword [esp + 0x100], xmm0
push 0xffffffffffffffff
movdqa xmm0, xmmword [0x1e17e0]
movdqu xmmword [esp + 0x114], xmm0
push eax
movdqa xmm0, xmmword [0x1e17c0]
push ebx
movdqu xmmword [esp + 0x12c], xmm0
call dword [0x1db1f4]
mov edx, dword [esp + 0xc]
push ecx
push esi
mov ecx, ebx
call fcn.10004550
add esp, 8
push 4
push 0x3000
push 0x200
push 0
call dword [0x1db170]
mov esi, dword [esp + 0x54]
mov dword [esi], eax
test eax, eax
je 0x10004b2a
push eax
push 0x100
mov dword [esp + 0x38], 1
call dword [0x1db198]
push 0x1e03a0
push dword [esi]
call dword [0x1db130]
push dword [esi]
mov esi, dword [esp + 0x28]
mov edx, edi
mov ecx, esi
call fcn.10004370
add esp, 4
jmp 0x10004b2e
mov esi, dword [esp + 0x24]
push dword [esp + 0x50]
push ebx
call dword [0x1db064]
push dword [esp + 0x48]
call dword [0x1db060]
jmp 0x10004b49
mov esi, dword [esp + 0x24]
push dword [esp + 0x3c]
push ebx
call dword [0x1db064]
push esi
call dword [0x1db060]
push ebx
call dword [0x1db090]
push edi
push 0
call dword [0x1db1fc]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret