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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x582728
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
push edi
call fcn.0052c050
mov ecx, dword [ebp + 0xc]
mov esi, eax
push edi
mov dword [esp + 0x3c], esi
call fcn.0052c570
mov ecx, dword [ebp + 0x10]
push edi
mov dword [esp + 0x28], eax
call fcn.0052c570
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
push 0
push eax
push ecx
lea ecx, [esp + 0x60]
call fcn.0052ec60
test edi, edi
mov ecx, 1
mov dword [esp + 0x80], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
je 0x52ed6f
mov eax, dword [ebx + 0x3c]
cmp eax, 3
jne 0x52ed54
mov eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jmp 0x52ed6f
cmp eax, ecx
jne 0x52ed62
mov dword [esp + 0x14], 2
jmp 0x52ed6b
cmp eax, 4
jne 0x52ed6f
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x14]
sub edi, dword [ecx + 0x40]
mov eax, dword [ecx + 0x4c]
mov edx, dword [eax + edi*4]
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x52ed8d
xor eax, eax
jmp 0x52ed95
mov eax, dword [eax + 0x1c]
sub eax, edx
sar eax, 2
mov edx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x20], ecx
lea edi, [edx*4]
sub ecx, edi
cmp eax, 2
mov ecx, dword [ecx + 4]
mov dword [esp + 0x2c], ecx
jne 0x52edc2
mov ecx, dword [esp + 0x20]
sub eax, edx
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x20], edx
jmp 0x52edc6
mov dword [esp + 0x20], ecx
mov ecx, ebx
call fcn.0052e870
mov ecx, dword [ebx + 0x5c]
xor edi, edi
neg ecx
cmp dword [ebx + 0xc], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ecx
jle 0x52efd6
mov eax, dword [ebx + 0x58]
neg eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 8]
xor esi, esi
test eax, eax
jle 0x52efbf
test esi, esi
je 0x52ee29
add eax, 0xffffffff
cmp esi, eax
jge 0x52ee49
test edi, edi
je 0x52ee1b
mov ecx, dword [ebx + 0xc]
sub ecx, 1
cmp edi, ecx
jge 0x52ee22
mov ecx, 4
jmp 0x52ee6a
mov ecx, 1
jmp 0x52ee6a
mov ecx, 7
jmp 0x52ee6a
test edi, edi
je 0x52ee3e
mov edx, dword [ebx + 0xc]
sub edx, 1
cmp edi, edx
jge 0x52ee42
mov ecx, 3
jmp 0x52ee6a
xor ecx, ecx
jmp 0x52ee6a
mov ecx, 6
jmp 0x52ee6a
test edi, edi
je 0x52ee5e
mov eax, dword [ebx + 0xc]
sub eax, 1
cmp edi, eax
jge 0x52ee65
mov ecx, 5
jmp 0x52ee6a
mov ecx, 2
jmp 0x52ee6a
mov ecx, 8
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x3c]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x1c]
mov edx, dword [eax + edi*4]
mov eax, dword [edx + esi*8]
mov edx, dword [edx + esi*8 + 4]
mov dword [esp + 0x48], edx
cdq
idiv dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
shl ecx, 5
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
cdq
idiv dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x1c]
mov edx, dword [edx + edi*4]
mov eax, dword [edx + esi*8]
mov edx, dword [edx + esi*8 + 4]
mov dword [esp + 0x50], edx
cdq
idiv dword [esp + 0x14]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
cdq
idiv dword [esp + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x1c]
mov eax, dword [edx + edi*4]
mov dx, word [eax + esi*2]
add dx, dx
add dx, dx
movzx eax, dx
mov edx, dword [esp + 0x34]
cmp edx, 1
jne 0x52ef1b
add ecx, dword [ebx + 0x60]
mov edx, dword [esp + 0x24]
push ecx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x64]
push eax
mov ecx, ebx
call fcn.0052db50
jmp 0x52efa6
cmp edx, 2
jne 0x52ef41
add ecx, dword [ebx + 0x60]
mov eax, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebx
call fcn.0052db50
jmp 0x52efa6
cmp edx, 3
jne 0x52ef90
mov edx, dword [ebx + 0x64]
add edx, ecx
push edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x64]
push eax
mov ecx, ebx
call fcn.0052db50
mov ecx, dword [ebx + 0x64]
add ecx, dword [esp + 0x34]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x64]
push edx
mov ecx, ebx
call fcn.0052db50
jmp 0x52efa6
add ecx, dword [ebx + 0x60]
lea edx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x40]
push ecx
push eax
push edx
mov ecx, ebx
call fcn.0052dff0
mov eax, dword [ebx + 0x50]
add dword [esp + 0x3c], eax
mov eax, dword [ebx + 8]
add esi, 1
cmp esi, eax
jl 0x52edfb
mov ecx, dword [esp + 0x40]
add ecx, dword [ebx + 0x54]
add edi, 1
cmp edi, dword [ebx + 0xc]
mov dword [esp + 0x40], ecx
jl 0x52ede5
mov esi, dword [esp + 0x38]
cmp dword [ebx + 0x44], 1
mov edi, dword [esp + 0x68]
jne 0x52f0ec
mov eax, dword [ebx + 8]
imul eax, dword [ebx + 0x50]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x38], eax
cmp eax, ecx
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x38]
jl 0x52f003
lea eax, [esp + 0x34]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x54]
imul eax, dword [ebx + 0xc]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x38], eax
cmp eax, ecx
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x38]
jl 0x52f028
lea eax, [esp + 0x34]
mov eax, dword [eax]
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jg 0x52f0ad
sub eax, ecx
add eax, 1
lea edx, [ecx*4]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x28]
jg 0x52f078
mov edi, dword [esp + 0x70]
mov edi, dword [edx + edi]
mov edi, dword [edi + eax*4]
mov ecx, dword [esi + 0x1c]
mov ecx, dword [edx + ecx]
add edi, 0x400
lea ecx, [ecx + eax*2]
sar edi, 0xb
sub word [ecx], di
add eax, 1
cmp eax, dword [esp + 0x28]
jle 0x52f050
mov eax, dword [ebx + 8]
imul eax, dword [ebx + 0x50]
mov edi, dword [esp + 0x68]
cmp eax, edi
jge 0x52f0a3
jmp 0x52f090
mov ecx, dword [esi + 0x1c]
mov ecx, dword [edx + ecx]
mov word [ecx + eax*2], 0
add eax, 1
cmp eax, edi
jl 0x52f090
add edx, 4
sub dword [esp + 0x24], 1
jne 0x52f046
mov ecx, dword [ebx + 0x54]
imul ecx, dword [ebx + 0xc]
mov ebx, dword [esp + 0x6c]
cmp ecx, ebx
jge 0x52f13f
xor eax, eax
test edi, edi
jle 0x52f0e3
jmp 0x52f0d0
mov edx, dword [esi + 0x1c]
mov edx, dword [edx + ecx*4]
mov word [edx + eax*2], 0
add eax, 1
cmp eax, edi
jl 0x52f0d0
add ecx, 1
cmp ecx, ebx
jl 0x52f0c0
jmp 0x52f13f
mov edx, dword [esp + 0x5c]
cmp edx, dword [esp + 0x64]
jg 0x52f13b
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
mov edi, edi
cmp eax, ebx
jg 0x52f132
mov edi, dword [esp + 0x70]
mov edi, dword [edi + edx*4]
mov edi, dword [edi + eax*4]
mov ecx, dword [esi + 0x1c]
mov ecx, dword [ecx + edx*4]
add edi, 0x400
lea ecx, [ecx + eax*2]
sar edi, 0xb
add word [ecx], di
add eax, 1
cmp eax, ebx
jle 0x52f104
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x58]
add edx, 1
cmp edx, dword [esp + 0x64]
jle 0x52f100
mov ebx, dword [esp + 0x6c]
test ebx, ebx
jle 0x52f174
test edi, edi
jle 0x52f167
xor esi, esi
test ebx, ebx
jle 0x52f167
lea ecx, [ecx]
mov edx, dword [esp + 0x70]
mov eax, dword [edx + esi*4]
push eax
call fcn.0044ff63
add esi, 1
add esp, 4
cmp esi, ebx
jl 0x52f150
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0044ff63
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14