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

Disassembly:
sub esp, 0x1b4
mov eax, edx
mov dword [esp + 0x1c], eax
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
cmp eax, 2
jb 0x4e351a
push ebp
push ebx
lea ecx, [esp + 0x80]
xor ebp, ebp
push edi
mov dword [esp + 0x20], edx
mov eax, edx
mov dword [esp + 0x24], ecx
sub eax, ebp
mov dword [esp + 0x1c], ebp
lea ebx, [ebp + 1]
cmp eax, 9
jle 0x4e346c
cdq
lea edi, [esp + 0x30]
sub eax, edx
imul edx, ebp, 0xc
sar eax, 1
add eax, ebp
mov ebp, dword [esp + 0x18]
imul ecx, eax, 0xc
mov eax, dword [esp + 0x20]
add edx, esi
add ecx, esi
mov esi, edx
dec eax
mov dword [esp + 0x14], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
mov edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ecx
lea esi, [esp + 0x30]
imul ecx, eax, 0xc
imul eax, ebx, 0xc
movsd dword es:[edi], dword [esi]
add ecx, ebp
add ebp, eax
mov dword [esp + 0x28], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 4]
cmp dword [ecx + 4], edi
jne 0x4e32f3
mov eax, dword [ecx + 8]
cmp eax, dword [ebp + 8]
setl al
test al, al
je 0x4e3316
mov esi, ecx
lea edi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebp
mov edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ebp
lea esi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 4]
mov esi, dword [edx + 4]
cmp esi, edi
jne 0x4e3323
mov eax, dword [edx + 8]
cmp eax, dword [ebp + 8]
setl al
test al, al
je 0x4e3346
mov esi, edx
lea edi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebp
mov edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ebp
lea esi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [edx + 4]
cmp dword [ecx + 4], esi
jne 0x4e3351
mov eax, dword [ecx + 8]
cmp eax, dword [edx + 8]
setl al
test al, al
je 0x4e3371
mov esi, ecx
lea edi, [esp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
mov edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x54]
mov edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2c]
add ebp, 8
inc ebx
lea ebp, [ebp + 0xc]
cmp ebx, ecx
jge 0x4e3395
mov eax, dword [edx + 4]
cmp dword [ebp - 4], eax
jne 0x4e338e
mov eax, dword [ebp]
cmp eax, dword [edx + 8]
setl al
test al, al
jne 0x4e3378
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
add ecx, 8
sub eax, 1
lea ecx, [ecx - 0xc]
mov dword [esp + 0x14], eax
js 0x4e33c9
mov esi, dword [ecx - 4]
cmp dword [edx + 4], esi
jne 0x4e33bd
mov eax, dword [edx + 8]
cmp eax, dword [ecx]
mov eax, dword [esp + 0x14]
setl byte [esp + 0x13]
cmp byte [esp + 0x13], 0
jne 0x4e33a0
cmp ebx, eax
jg 0x4e33fa
mov ebp, dword [esp + 0x18]
lea edi, [esp + 0x60]
imul ecx, eax, 0xc
imul eax, ebx, 0xc
add ecx, ebp
add ebp, eax
mov dword [esp + 0x28], ecx
mov esi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x60]
mov edi, ecx
jmp 0x4e336e
xor ecx, ecx
mov ebp, dword [esp + 0x20]
test eax, eax
lea edi, [esp + 0x6c]
mov esi, edx
cmovs eax, ecx
mov dword [esp + 0x14], eax
imul eax, eax, 0xc
movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
add eax, dword [esp + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, edx
mov esi, eax
mov edx, dword [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
lea esi, [esp + 0x6c]
mov eax, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
mov esi, ebp
sub ecx, edi
sub esi, ebx
cmp ecx, esi
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
cmovle edx, ebp
cmovle eax, edi
cmovle ebp, dword [esp + 0x14]
cmovle edi, ebx
mov dword [esp + 0x20], ebp
mov ebp, eax
mov dword [ecx], edi
mov dword [ecx + 4], edx
add ecx, 8
mov edx, dword [esp + 0x20]
jmp 0x4e3288
mov dword [esp + 0x14], ebp
cmp ebx, edx
jge 0x4e34ff
imul edx, ebp, 0xc
imul edi, ebx, 0xc
mov dword [esp + 0x1c], edi
lea eax, [edx + esi]
mov ecx, dword [eax + 4]
lea esi, [eax + 0xc]
mov dword [esp + 0x28], eax
cmp dword [esi + 4], ecx
jne 0x4e34a3
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 8]
cmp eax, dword [edx + ecx + 8]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
setl byte [esp + 0x13]
cmp byte [esp + 0x13], 0
je 0x4e34e5
lea edi, [esp + 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
lea edi, [eax + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
lea esi, [esp + 0x78]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
cmp esi, ebp
je 0x4e34e5
dec esi
sub edx, 0xc
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x18]
jmp 0x4e3482
mov esi, dword [esp + 0x18]
mov edx, edi
mov dword [esp + 0x14], ebx
add edi, 0xc
inc ebx
mov dword [esp + 0x1c], edi
cmp ebx, ecx
jl 0x4e3482
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x84]
cmp ecx, eax
jbe 0x4e3517
mov edx, dword [ecx - 4]
sub ecx, 8
mov ebp, dword [ecx]
jmp 0x4e3284
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x1b4
ret