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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x5328d0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
mov ebx, edx
mov eax, ecx
mov edx, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 8], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ecx
push esi
push edi
test edx, edx
jne 0x4cae83
int3
or dword [esp + 0x88], 0xffffffff
lea esi, [esp + 0x80]
mov edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x4cae9d
int3
cmp dword [ebp + 0x10], 0xffffffff
jne 0x4caea4
int3
cmp dword [ebx], ecx
jne 0x4caea9
int3
mov edx, dword [ebx + 4]
test edx, edx
jne 0x4caeb1
int3
lea esi, [esp + 0x118]
mov dword [esp + 0x124], ecx
mov dword [esp + 0x118], esi
lea edi, [esp + 0x90]
mov dword [esp + 0x11c], esi
or ebx, 0xffffffff
mov dword [esp + 0x120], esi
lea esi, [ebp + 8]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x20], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test edx, edx
je 0x4cb2c7
mov ebx, dword [eax]
lea esi, [esp + 0x90]
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 1
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], 0x2001
push eax
sub esp, 0x10
mov dword [esp + 0x54], 1
mov edi, esp
lea ecx, [esp + 0xe8]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebx + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x5352c4]
mov ecx, dword [esp + 0x28]
call dword [ebx + 0x4c]
test eax, eax
js 0x4cb130
cmp dword [esp + 0xd0], 2
je 0x4caf62
int3
or dword [esp + 0xc8], 0xffffffff
lea esi, [esp + 0xc0]
lea edi, [esp + 0xb0]
mov ebx, dword [esp + 0x20]
movsd dword es:[edi], dword [esi]
xor ecx, ecx
xor eax, eax
mov dl, cl
mov byte [esp + 0xe], dl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x128]
mov esi, ecx
stosd dword es:[edi], eax
mov dword [esp + 0x18], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esp + 0xd8]
cmp esi, dword [eax + 4]
jae 0x4cb274
mov eax, dword [eax]
lea edi, [esp + 0xa0]
mov ecx, esi
mov ebx, dword [esp + 0x10]
shl ecx, 4
add eax, ecx
lea ecx, [esp + 0x128]
mov esi, eax
mov ebx, dword [ebx]
push ecx
sub esp, 0x10
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x5352c4]
mov edi, dword [esp + 0x24]
mov ecx, edi
call dword [ebx + 0x2c]
test eax, eax
js 0x4cb130
cmp dword [esp + 0x130], 0xffffffff
je 0x4cb139
mov ebx, dword [edi]
lea eax, [esp + 0xe8]
mov dword [esp + 0x40], eax
lea esi, [esp + 0xa0]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x2004
mov dword [esp + 0x48], eax
xor ecx, ecx
lea eax, [esp + 0x40]
inc ecx
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], ecx
push eax
sub esp, 0x10
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx + 0x4c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x5352c4]
mov esi, dword [esp + 0x28]
mov ecx, esi
call dword [ebx + 0x4c]
test eax, eax
js 0x4cb130
mov ebx, dword [esi]
lea eax, [esp + 0x100]
mov dword [esp + 0x50], eax
lea esi, [esp + 0xa0]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x2005
mov dword [esp + 0x58], eax
xor ecx, ecx
lea eax, [esp + 0x50]
inc ecx
push eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x58], ecx
push eax
sub esp, 0x10
mov dword [esp + 0x74], ecx
mov ecx, dword [ebx + 0x4c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x5352c4]
mov edi, dword [esp + 0x28]
mov ecx, edi
call dword [ebx + 0x4c]
test eax, eax
js 0x4cb130
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0xf0]
mov byte [esp + 0xf], 0
mov esi, dword [eax]
lea eax, [esp + 0x17]
push eax
mov ecx, dword [esi + ebx*8 + 4]
call fcn.004c302e
test eax, eax
js 0x4cb130
cmp byte [esp + 0x17], 0
je 0x4cb13d
mov edx, dword [esp + 0x108]
lea eax, [esp + 0xf]
mov ecx, dword [esi + ebx*8]
push eax
call fcn.004c302e
test eax, eax
js 0x4cb130
cmp byte [esp + 0xf], 0
je 0x4cb13d
lea esi, [esp + 0xa0]
mov byte [esp + 0xe], 1
lea edi, [esp + 0xb0]
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x118]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
push esi
call fcn.004cad92
test eax, eax
jns 0x4cb143
mov dword [esp + 0x24], eax
jmp 0x4cb2e0
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
jmp 0x4cb147
mov edi, dword [esp + 0x10]
mov dl, byte [esp + 0xe]
test dl, dl
jne 0x4cb267
mov eax, dword [esp + 0xd8]
lea ecx, [esi + 1]
cmp ecx, dword [eax + 4]
jne 0x4cb267
cmp dword [esp + 0x124], 0
je 0x4cb267
mov ebx, dword [edi]
lea eax, [esp + 0x138]
mov dword [esp + 0x60], eax
lea esi, [esp + 0x90]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x200b
mov dword [esp + 0x68], eax
xor ecx, ecx
lea eax, [esp + 0x60]
inc ecx
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x68], ecx
push eax
sub esp, 0x10
mov dword [esp + 0x84], ecx
mov ecx, dword [ebx + 0x4c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x5352c4]
mov ecx, dword [esp + 0x28]
call dword [ebx + 0x4c]
test eax, eax
js 0x4cb130
lea eax, [esp + 0xd0]
mov dword [esp + 0x1c], 0x2001
mov dword [esp + 0x70], eax
lea esi, [esp + 0x140]
lea edi, [esp + 0x90]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
mov dword [esp + 0x78], eax
inc ecx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], ecx
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x7c], ecx
mov ebx, dword [eax]
lea eax, [esp + 0x70]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x7c]
push eax
mov ecx, dword [ebx + 0x4c]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x158]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x5352c4]
mov ecx, dword [esp + 0x28]
call dword [ebx + 0x4c]
test eax, eax
js 0x4cb130
cmp dword [esp + 0xd0], 2
je 0x4cb24c
int3
lea ecx, [esp + 0x118]
call fcn.004cae19
mov ebx, dword [esp + 0x20]
mov esi, eax
mov dl, byte [esp + 0xe]
dec ebx
mov dword [esp + 0x20], ebx
inc esi
mov dword [esp + 0x18], esi
test dl, dl
je 0x4caf9b
test dl, dl
je 0x4cb2e0
cmp dword [esp + 0xb8], 0xffffffff
jne 0x4cb283
int3
mov eax, dword [esp + 0x28]
inc ebx
mov dword [esp + 0x20], ebx
cmp ebx, dword [eax + 4]
jae 0x4cb2a1
lea esi, [esp + 0xb0]
lea edi, [esp + 0x90]
jmp 0x4cb2af
lea esi, [esp + 0x128]
lea edi, [esp + 0x80]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jae 0x4cb2be
mov eax, dword [esp + 0x10]
jmp 0x4caef8
mov ebx, dword [esp + 0x88]
xor ecx, ecx
cmp ebx, 0xffffffff
jne 0x4cb2cd
int3
mov edi, dword [esp + 0x2c]
lea esi, [esp + 0x80]
mov dword [esp + 0x24], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x118]
call fcn.004cad3e
mov ecx, dword [esp + 0x154]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050e82a
mov esp, ebp
pop ebp
ret 0x14