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

Disassembly:
mov eax, dword [esp + 0x20]
xor edx, edx
sub esp, 0xa0
cmp eax, edx
jne 0x528ef1
mov eax, dword [esp + 0xb0]
add eax, 0xc
mov dword [esp + 0xc0], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc8]
mov ebp, dword [esp + 0xd4]
push edi
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xa4], ecx
mov eax, ecx
mov ecx, ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x68], ecx
mov ecx, 1
cmp ebp, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x64], eax
jle 0x528f8b
lea eax, [esi + 8]
mov edi, dword [eax + 4]
cmp edi, ebx
jl 0x528f43
jne 0x528f57
mov ebp, dword [eax]
cmp ebp, dword [esp + 0xa4]
jge 0x528f57
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp + 0xa4], edx
mov dword [esp + 0x30], ecx
mov edx, ecx
jmp 0x528f7c
mov ebp, dword [esp + 0x68]
cmp ebp, edi
jl 0x528f6b
jne 0x528f7c
mov edi, dword [esp + 0x64]
mov ebp, dword [eax]
cmp edi, ebp
jge 0x528f7c
mov edi, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x64], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x68], edi
mov ebp, dword [esp + 0xd8]
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x528f2f
lea ebx, [edx - 1]
lea edi, [edx + 1]
test edx, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
jne 0x528fa4
lea ebx, [ebp - 1]
mov dword [esp + 0x14], ebx
lea eax, [ebp - 1]
cmp edx, eax
mov dword [esp + 0x24], eax
jne 0x528fb1
xor edi, edi
xor eax, eax
mov ecx, dword [esi + edx*8 + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [esi + ebx*8 + 4]
mov ebp, dword [esi + edi*8]
mov dword [esp + 0x18], eax
lea eax, [esi + edx*8 + 4]
mov edi, dword [esi + edi*8 + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esi + edx*8]
sub ebx, ecx
sub ebp, eax
imul ebx, ebp
mov ebp, dword [esp + 0x14]
sub edi, ecx
mov dword [esp + 0x1c], edx
mov ebp, dword [esi + ebp*8]
sub ebp, eax
imul edi, ebp
sub edi, ebx
test edi, edi
jle 0x5291ef
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x529022
mov edi, dword [esp + 0xd8]
mov eax, dword [esi + 4]
cmp eax, dword [esi + edi*8 - 4]
jne 0x52903c
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jmp 0x52903c
mov eax, dword [esi + ebx*8 + 4]
mov edi, dword [esi + ebx*8 - 4]
cmp eax, edi
jne 0x529035
lea eax, [ebx - 1]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0xd8]
mov ebp, dword [esp + 0x18]
mov eax, edx
cmp edx, ebp
mov ebp, dword [esp + 0x2c]
je 0x52905c
inc eax
cmp eax, edi
jne 0x529051
xor eax, eax
inc ebp
cmp eax, dword [esp + 0x18]
jne 0x52904a
mov dword [esp + 0x2c], ebp
test edx, edx
jne 0x529075
mov ecx, dword [esi + 4]
mov eax, dword [esi + edi*8 - 4]
cmp ecx, eax
jne 0x529085
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jmp 0x529089
cmp ecx, dword [esi + edx*8 - 4]
jne 0x529085
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
jmp 0x529089
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov ebx, dword [esp + 0x28]
je 0x5290a8
dec eax
cmp eax, 0xffffffff
jne 0x52909b
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc ebx
cmp eax, ecx
jne 0x529091
mov dword [esp + 0x28], ebx
inc ebp
shl ebp, 4
push ebp
call fcn.0054a1d0
inc ebx
mov edi, eax
shl ebx, 4
push ebx
mov dword [esp + 0x54], edi
call fcn.0054a1d0
push ebp
mov dword [esp + 0x48], eax
call fcn.0054a1d0
mov ebp, eax
push ebx
mov dword [esp + 0x48], ebp
call fcn.0054a1d0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp edx, eax
mov eax, dword [esp + 0xc8]
je 0x529168
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x14], ebx
lea ecx, [ebp + 8]
mov dword [esp + 0x20], edi
mov ebp, dword [esp + 0xd8]
mov edi, edx
inc edx
cmp edx, ebp
jne 0x529111
xor edx, edx
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x20]
mov ebp, dword [esi + edx*8]
mov dword [ebx + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ebx + ecx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x18]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x529101
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
je 0x5293c7
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov ebp, ebx
mov dword [esp + 0x14], ebx
sub ebp, edi
lea ecx, [edi + 8]
mov dword [esp + 0x20], ebp
mov edi, edx
dec edx
cmp edx, 0xffffffff
jne 0x52919b
mov edx, dword [esp + 0x24]
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x20]
mov ebp, dword [esi + edx*8]
mov dword [ebx + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ebx + ecx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x10]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x52918f
jmp 0x5293bf
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jne 0x529204
cmp ecx, dword [esi + 4]
jne 0x529213
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x529217
cmp ecx, dword [esi + edx*8 + 0xc]
jne 0x529213
lea eax, [edx + 1]
mov dword [esp + 0x1c], eax
jmp 0x529217
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x529251
mov edi, dword [esp + 0xd8]
mov ebx, dword [esp + 0x28]
inc eax
cmp eax, edi
jne 0x529231
xor eax, eax
inc ebx
cmp eax, ecx
jne 0x52922a
mov dword [esp + 0x28], ebx
mov eax, dword [esi + ecx*8 + 4]
cmp ecx, ebp
jne 0x529257
cmp eax, dword [esi + 4]
jne 0x529262
mov dword [esp + 0x18], 0
jmp 0x529262
mov ebx, dword [esp + 0x28]
jmp 0x52923a
cmp eax, dword [esi + ecx*8 + 0xc]
jne 0x529262
inc ecx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
cmp edx, eax
je 0x529281
dec edx
cmp edx, 0xffffffff
jne 0x529278
mov edx, dword [esp + 0x24]
inc ebp
cmp edx, eax
jne 0x52926e
mov dword [esp + 0x2c], ebp
inc ebp
shl ebp, 4
push ebp
call fcn.0054a1d0
inc ebx
mov edi, eax
shl ebx, 4
push ebx
mov dword [esp + 0x54], edi
call fcn.0054a1d0
push ebp
mov dword [esp + 0x48], eax
call fcn.0054a1d0
mov ebp, eax
push ebx
mov dword [esp + 0x48], ebp
call fcn.0054a1d0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
mov eax, dword [esp + 0xc8]
je 0x529349
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x14], ebx
lea ecx, [ebp + 8]
mov dword [esp + 0x20], edi
mov ebp, dword [esp + 0xd8]
mov edi, edx
inc edx
cmp edx, ebp
jne 0x5292f2
xor edx, edx
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x20]
mov ebp, dword [esi + edx*8]
mov dword [ecx + ebx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ecx + ebx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x10]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x5292e2
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
je 0x5293c7
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x14], ebx
lea ecx, [ebp + 8]
mov dword [esp + 0x20], edi
mov edi, edx
dec edx
cmp edx, 0xffffffff
jne 0x529370
mov edx, dword [esp + 0x24]
mov ebp, dword [esi + edi*8]
add ecx, 0x10
mov dword [ebx], ebp
mov ebp, dword [esi + edi*8 + 4]
mov dword [ebx + 4], ebp
mov ebx, dword [esp + 0x20]
mov ebp, dword [esi + edx*8]
mov dword [ebx + ecx - 0x10], ebp
mov ebp, dword [esi + edx*8 + 4]
mov dword [ebx + ecx - 0xc], ebp
mov ebx, dword [eax + edi*8]
mov dword [ecx - 0x18], ebx
mov edi, dword [eax + edi*8 + 4]
mov ebx, dword [esp + 0x14]
mov dword [ecx - 0x14], edi
mov edi, dword [eax + edx*8]
add ebx, 0x10
mov dword [ecx - 0x10], edi
mov edi, dword [eax + edx*8 + 4]
mov dword [ecx - 0xc], edi
mov edi, dword [esp + 0x18]
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x529364
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
shl eax, 4
add ecx, eax
lea edx, [ecx - 0x10]
mov ebx, dword [ecx - 0x10]
mov dword [ecx], ebx
mov ebx, dword [edx + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [edx + 8]
mov dword [ecx + 8], ebx
mov bl, byte [esp + 0xd4]
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x40]
add eax, ecx
lea edx, [eax - 0x10]
mov ecx, dword [eax - 0x10]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x2c]
shl eax, 4
lea ecx, [eax + edi - 0x10]
mov edx, dword [eax + edi - 0x10]
mov dword [eax + edi], edx
mov edx, dword [ecx + 4]
mov dword [eax + edi + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + edi + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + edi + 0xc], ecx
add eax, ebp
lea edx, [eax - 0x10]
mov ecx, dword [eax - 0x10]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0xc0]
mov ecx, dword [eax + 8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edx + 8]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x90], edx
xor eax, eax
xor ecx, ecx
xor edx, edx
test bl, bl
setne dl
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0xd0]
test edx, edx
jne 0x5294af
mov edx, dword [esp + 0x48]
mov edx, dword [edx]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
mov edx, dword [esi + edx*8 + 4]
jmp 0x529706
mov ebx, dword [esp + 0xd0]
mov edx, dword [ebx]
shl edx, 0x14
add edx, 0x80000
mov dword [esp + 0x98], edx
mov edx, dword [ebx + 8]
mov ebx, dword [esp + 0x10]
shl edx, 0x14
mov esi, dword [esi + ebx*8 + 4]
sub edx, 0x80000
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0xd0]
mov edx, dword [edx]
mov ebx, dword [esi + 4]
mov esi, dword [esi + 0xc]
dec esi
cmp esi, edx
mov dword [esp + 0x54], esi
jl 0x529b6a
mov esi, dword [esp + 0x48]
cmp esi, ebx
jl 0x529b6a
cmp ebx, edx
jg 0x529520
mov dword [esp + 0x1c], edx
jmp 0x5296fa
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov eax, 1
dec ebx
cmp ecx, eax
mov dword [esp + 0x44], eax
jle 0x52954e
add edi, 0xc
cmp dword [edi - 8], ebx
jg 0x529542
cmp ebx, dword [edi]
jl 0x52954a
inc eax
add edi, 0x10
cmp eax, ecx
jl 0x529539
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x28]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x10], ecx
jle 0x52957b
mov eax, dword [esp + 0x3c]
add eax, 0xc
cmp dword [eax - 8], ebx
jg 0x52956f
cmp ebx, dword [eax]
jl 0x529577
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x529566
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
shl ecx, 4
mov edx, dword [ecx + eax - 0xc]
mov edi, dword [ecx + eax - 4]
mov ebp, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, ebp
mov dword [esp + 0x34], edx
shl eax, 0x14
sub edi, edx
cdq
idiv edi
mov edx, dword [esp + 0x38]
shl ebp, 0x14
mov esi, dword [ecx + edx - 0x10]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x18]
add edi, eax
mov eax, dword [ecx + edx - 8]
sub eax, esi
mov dword [esp + 0x20], edi
shl eax, 0x14
cdq
idiv edi
shl esi, 0x14
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x38]
mov edx, eax
mov edi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + edx - 4]
mov ecx, dword [esp + 0x34]
sub eax, edi
shl eax, 0x14
cdq
idiv dword [esp + 0x20]
shl edi, 0x14
mov dword [esp + 0x80], eax
mov eax, ebx
sub eax, ecx
mov ecx, eax
imul ecx, dword [esp + 0x70]
lea edx, [ecx + ebp + 0x80000]
mov ecx, eax
imul ecx, dword [esp + 0x7c]
imul eax, dword [esp + 0x80]
mov dword [esp + 0x24], edx
lea edx, [ecx + esi + 0x80000]
mov ecx, dword [esp + 0x10]
lea eax, [eax + edi + 0x80000]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
shl ecx, 4
mov dword [esp + 0x28], edx
mov edx, dword [ecx + eax - 0xc]
mov esi, dword [ecx + eax - 4]
mov edi, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, edi
mov dword [esp + 0x34], edx
shl eax, 0x14
sub esi, edx
cdq
idiv esi
mov edx, dword [esp + 0x18]
add esi, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x40]
mov ebp, dword [ecx + eax - 0x10]
mov eax, dword [ecx + eax - 8]
sub eax, ebp
shl eax, 0x14
cdq
idiv esi
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x40]
mov esi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + eax - 4]
sub eax, esi
shl eax, 0x14
cdq
idiv dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
sub ebx, ecx
mov ecx, ebx
imul edx, ecx
shl edi, 0x14
shl ebp, 0x14
lea edx, [edx + edi + 0x80000]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x84]
imul edx, ecx
mov dword [esp + 0x88], eax
imul eax, ecx
mov ecx, dword [esp + 0x10]
lea edx, [edx + ebp + 0x80000]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x6c], edx
shl esi, 0x14
lea eax, [eax + esi + 0x80000]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x20], esi
cmp esi, edx
jle 0x52970a
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc0]
mov edx, esi
imul edx, dword [esp + 0x14]
add edx, dword [ebx + 4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
cmp esi, edx
jg 0x529b4d
mov esi, dword [esp + 0x3c]
shl ecx, 4
shl eax, 4
lea ebx, [ecx + esi]
mov esi, dword [esp + 0x40]
lea edx, [eax + edi]
lea eax, [eax + ebp - 0xc]
lea ecx, [ecx + esi - 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xa0], ebx
add ebx, 0xfffffff0
sub ebp, edi
sub eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xac], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x9c], edx
lea esi, [edx - 0x10]
jmp 0x5297a2
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
cmp dword [edx + 4], edi
je 0x5297ea
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x7c]
add ebp, edx
mov edx, dword [esp + 0x80]
add eax, edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x2c], eax
add ecx, edi
sar eax, 0x14
imul eax, dword [esp + 0x5c]
mov dword [esp + 0x28], ecx
add edx, eax
sar ecx, 0x14
mov dword [esp + 0x24], ebp
lea ecx, [ecx + ecx*2]
add ecx, edx
jmp 0x529899
mov edx, dword [esi + 0x10]
add esi, 0x10
mov eax, edx
mov edi, dword [esp + 0x44]
mov ecx, dword [esi + 0xc]
add edi, 0x10
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x44], edi
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
sub ecx, eax
lea eax, [esi + 0x10]
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 8]
sub eax, edx
mov edi, dword [edi]
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0xac]
mov ebp, dword [edx + esi]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x70], eax
mov eax, ebp
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x28], eax
mov eax, edi
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
add ecx, eax
mov eax, dword [edx + 4]
sub eax, ebp
shl eax, 0x14
cdq
idiv ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 8]
sub eax, edi
imul edi, dword [esp + 0x5c]
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0x90]
lea ecx, [ebp + ebp*2]
mov ebp, dword [esp + 0x24]
add edx, edi
add ecx, edx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x1c]
cmp dword [eax + 4], edx
je 0x5298de
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x6c]
add edx, eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x84]
add edi, edx
mov edx, dword [esp + 0x58]
add edx, eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x58], edx
jmp 0x52997d
mov edx, dword [ebx + 0x10]
add ebx, 0x10
mov eax, edx
mov ebp, dword [esp + 0x60]
mov edi, dword [ebx + 0xc]
add ebp, 0x10
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x60], ebp
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 4]
sub edi, eax
lea eax, [ebx + 0x10]
mov dword [esp + 0xa0], eax
mov eax, dword [ebx + 8]
sub eax, edx
mov ebp, dword [ebp]
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0xa4]
mov edx, dword [edx + ebx]
mov dword [esp + 0x74], eax
mov eax, edx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x6c], eax
mov eax, ebp
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
add edi, eax
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
sub eax, edx
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0x60]
mov dword [esp + 0x84], eax
mov eax, dword [edx + 8]
sub eax, ebp
mov ebp, dword [esp + 0x24]
shl eax, 0x14
cdq
idiv edi
mov dword [esp + 0x88], eax
mov edi, dword [esp + 0x30]
mov eax, ebp
sar edi, 0x14
sar eax, 0x14
mov dword [esp + 0x34], edi
sub edi, eax
mov dword [esp + 0x94], eax
je 0x5299da
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
add edi, eax
mov eax, dword [esp + 0x6c]
sar edx, 0x14
shl edx, 0x14
and eax, 0xfff00000
sub eax, edx
cdq
idiv edi
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, dword [esp + 0x58]
and eax, 0xfff00000
sub eax, edx
cdq
idiv edi
mov dword [esp + 0x54], eax
jmp 0x5299e4
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0xd0]
xor eax, eax
cmp edx, eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x48], eax
jne 0x529a09
mov ebp, dword [esp + 0x94]
mov edx, dword [esp + 0x34]
jmp 0x529a94
cmp dword [esp + 0x8c], ebp
jl 0x529b22
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x30]
cmp edi, edx
jl 0x529b22
cmp edx, ebp
jg 0x529a36
mov ebp, dword [esp + 0x94]
jmp 0x529a74
mov edx, dword [esp + 0x98]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0xd0]
sub edx, edi
sar edx, 0x14
mov ebp, dword [eax]
mov eax, edx
imul edx, dword [esp + 0x54]
imul eax, dword [esp + 0x78]
mov dword [esp + 0x48], edx
mov edi, eax
sar edx, 0x14
imul edx, dword [esp + 0x5c]
sar edi, 0x14
lea ecx, [ecx + edi*2]
add edi, ecx
lea ecx, [edi + edx]
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x30]
cmp edi, edx
jg 0x529a89
mov edx, dword [esp + 0x34]
jmp 0x529a94
mov edx, dword [esp + 0xd0]
mov edx, dword [edx + 8]
dec edx
cmp ebp, edx
jg 0x529b12
mov edi, dword [esp + 0x10]
sub edx, ebp
inc edx
lea edi, [edi + ebp*4 + 2]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0xc4]
mov ebp, dword [ecx]
xor edx, ebp
test edx, 0xffffff
je 0x529ad6
mov dl, byte [ecx]
mov byte [esp + 0x53], dl
mov dl, byte [ecx + 1]
mov cl, byte [ecx + 2]
mov byte [edi - 1], dl
mov dl, byte [esp + 0x53]
mov byte [edi - 2], cl
mov byte [edi], dl
mov byte [edi + 1], 0xff
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x78]
add ecx, edx
mov edx, ecx
add eax, ebp
sar edx, 0x14
imul edx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x48], ecx
mov ecx, eax
add ebp, edx
mov edx, dword [esp + 0x34]
add edi, 4
sar ecx, 0x14
lea ecx, [ecx + ecx*2]
add ecx, ebp
dec edx
mov dword [esp + 0x34], edx
jne 0x529aa7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x529b30
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jle 0x52978f
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x4c]
push edi
call fcn.0054a2d0
mov edx, dword [esp + 0x40]
push edx
call fcn.0054a2d0
push ebp
call fcn.0054a2d0
mov eax, dword [esp + 0x4c]
push eax
jmp 0x529b85
push edi
call fcn.0054a2d0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0054a2d0
push ebp
call fcn.0054a2d0
mov edx, dword [esp + 0x4c]
push edx
call fcn.0054a2d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret