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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
push ebx
push esi
mov esi, dword [ebp + 0x2c]
mov eax, dword [esi + 0x68]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x10]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ebx, eax
push edi
mov edi, dword [esi + 0x18]
mov ecx, dword [esi + 0x6c]
lea eax, [edi - 1]
or eax, 0x3fff
sar ebx, 0xe
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x1c]
lea eax, [ecx - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x44]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x4c]
dec eax
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esi + 0x10]
sar eax, 0xe
mov dword [esp + 0x78], eax
lea eax, [ebx + 1]
shl eax, 0xe
sub eax, edx
mov edx, dword [esp + 0x28]
shl edx, 0xe
sub edi, edx
mov edx, dword [esi + 0x14]
add edi, 0x4000
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], edi
lea edi, [eax + 1]
shl edi, 0xe
sub edi, edx
mov edx, dword [esp + 0x34]
shl edx, 0xe
sub ecx, edx
add ecx, 0x4000
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
cmp ecx, 2
mov dword [esp + 0x84], ebx
jge 0x53b10a
mov edi, dword [esi + 0x1c]
sub edi, dword [esi + 0x14]
mov edx, dword [esp + 0x28]
sub edx, ebx
cmp edx, 2
jge 0x53b11f
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
cdq
sub eax, edx
mov edx, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esi + 0x44]
sar ecx, 1
lea ecx, [ecx + eax + 0x2000]
mov eax, dword [esp + 0x10]
cmp eax, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
jge 0x53b688
jmp 0x53b160
mov ecx, dword [esp + 0x18]
jmp 0x53b160
mov edx, dword [esp + 0x58]
mov edi, dword [esi + 0x40]
mov dword [esp + 0xc], edx
mov eax, ecx
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x4c], eax
mov eax, ecx
and eax, 0x80003fff
mov dword [esp + 0x24], edi
jns 0x53b191
dec eax
or eax, 0xffffc000
inc eax
mov ecx, dword [esi + 4]
sar eax, 2
shl eax, 4
add eax, 0x6b3960
mov dword [esp + 0x50], eax
mov eax, dword [esi + 8]
imul eax, dword [esp + 0x10]
add eax, ecx
lea ecx, [ebx*4]
add eax, ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
push eax
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xac]
push eax
call fcn.00537220
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x44], ebx
jge 0x53b625
jmp 0x53b1f0
mov edi, dword [esp + 0x24]
lea ecx, [ecx]
mov eax, dword [esp + 0xc]
imul dword [esp + 0x38]
shrd eax, edx, 0xe
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
mov eax, edi
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov esi, eax
lea eax, [ecx + edi - 1]
or eax, 0x3fff
sar esi, 0xe
inc eax
cdq
and edx, 0x3fff
add edx, eax
sar edx, 0xe
mov eax, edx
shl eax, 0xe
sub ecx, eax
lea ebx, [esi + 1]
shl ebx, 0xe
mov eax, edx
sub eax, esi
sub ebx, edi
cmp eax, 2
lea ecx, [ecx + edi + 0x4000]
mov dword [esp + 0x70], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x64], eax
jge 0x53b25e
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov ecx, 0x28
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x68], ecx
lea ecx, [esi*4 + 1]
mov dword [esp + 0x98], ecx
lea ecx, [esi*4 + 3]
mov dword [esp + 0x88], eax
lea eax, [esi*4 + 2]
inc esi
dec edx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x60], edx
lea ecx, [esp + 0xb8]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + edx*4 + 0xa0]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x88]
add esi, edx
imul esi, dword [esp + 0x68]
add esi, eax
mov eax, dword [esp + 0x70]
movzx eax, byte [esi + eax*4]
imul eax, ebx
mov edi, dword [ecx - 8]
cdq
add edi, eax
mov eax, dword [ecx - 4]
adc eax, edx
mov edx, dword [esp + 0x98]
mov dword [ecx - 4], eax
movzx eax, byte [edx + esi]
imul eax, ebx
cdq
mov dword [ecx - 8], edi
mov edi, dword [ecx]
add edi, eax
adc dword [ecx + 4], edx
mov eax, dword [esp + 0x5c]
movzx eax, byte [eax + esi]
imul eax, ebx
cdq
mov dword [ecx], edi
mov edi, dword [ecx + 8]
add edi, eax
mov eax, dword [ecx + 0xc]
adc eax, edx
mov edx, dword [esp + 0x90]
mov dword [ecx + 0xc], eax
movzx eax, byte [edx + esi]
imul eax, ebx
mov dword [ecx + 8], edi
mov edi, dword [ecx + 0x10]
cdq
add edi, eax
mov eax, dword [esp + 0x60]
mov dword [ecx + 0x10], edi
adc dword [ecx + 0x14], edx
mov edi, dword [esp + 0x80]
cmp edi, eax
jge 0x53b3db
lea edx, [esi + edi*4 + 2]
sub eax, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x54], eax
add edi, eax
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
movzx eax, byte [eax - 2]
shl eax, 0xe
cdq
add dword [ecx - 8], eax
mov eax, dword [ecx - 4]
adc eax, edx
mov edx, dword [esp + 0x14]
mov dword [ecx - 4], eax
movzx eax, byte [edx - 1]
shl eax, 0xe
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [esp + 0x14]
movzx eax, byte [eax]
shl eax, 0xe
cdq
add dword [ecx + 8], eax
mov eax, dword [ecx + 0xc]
adc eax, edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 0xc], eax
movzx eax, byte [edx + 1]
shl eax, 0xe
cdq
add dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x14]
adc eax, edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x54]
add edx, 4
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x54], eax
jne 0x53b370
cmp dword [esp + 0x64], 1
jle 0x53b42e
movzx eax, byte [esi + edi*4]
imul eax, dword [esp + 0x30]
cdq
add dword [ecx - 8], eax
adc dword [ecx - 4], edx
movzx eax, byte [esi + edi*4 + 1]
imul eax, dword [esp + 0x30]
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
movzx eax, byte [esi + edi*4 + 2]
imul eax, dword [esp + 0x30]
cdq
add dword [ecx + 8], eax
adc dword [ecx + 0xc], edx
movzx eax, byte [esi + edi*4 + 3]
imul eax, dword [esp + 0x30]
mov esi, dword [ecx + 0x10]
cdq
add esi, eax
mov eax, dword [ecx + 0x14]
adc eax, edx
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x40]
inc eax
add ecx, 0x28
cmp eax, 4
mov dword [esp + 0x40], eax
jl 0x53b2c1
mov eax, dword [esp + 0xc]
mov esi, 0x4000
cmp eax, esi
jne 0x53b45a
cmp dword [esp + 0x1c], esi
je 0x53b59a
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x53b59a
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x53b5b6
mov eax, dword [esp + 0xc]
imul dword [esp + 0x1c]
shrd eax, edx, 0xe
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x6c]
imul eax, eax, 0xff
cdq
and edx, 0x3fff
add eax, edx
push ecx
mov ebx, eax
mov eax, dword [esp + 0x54]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x54]
push edx
sar ebx, 0xe
call fcn.00537430
mov edx, dword [esp + 0x20]
movzx edi, byte [edx]
movzx esi, bl
mov ebx, dword [esp + 0x48]
movzx eax, bl
sub eax, edi
imul eax, esi
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x53b4de
xor ecx, ecx
jmp 0x53b4eb
cmp ecx, 0xff
jle 0x53b4eb
mov ecx, 0xff
movzx edi, byte [edx + 1]
movzx eax, bh
sub eax, edi
imul eax, esi
mov byte [edx], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x53b510
xor ecx, ecx
jmp 0x53b51d
cmp ecx, 0xff
jle 0x53b51d
mov ecx, 0xff
mov bx, word [esp + 0x4a]
movzx edi, byte [edx + 2]
movzx eax, bl
sub eax, edi
imul eax, esi
mov byte [edx + 1], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x53b548
xor ecx, ecx
jmp 0x53b555
cmp ecx, 0xff
jle 0x53b555
mov ecx, 0xff
movzx edi, byte [edx + 3]
movzx eax, bh
sub eax, edi
imul eax, esi
mov byte [edx + 2], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x53b583
xor ecx, ecx
mov byte [edx + 3], cl
mov esi, 0x4000
jmp 0x53b5ba
cmp ecx, 0xff
jle 0x53b590
mov ecx, 0xff
mov byte [edx + 3], cl
mov esi, 0x4000
jmp 0x53b5ba
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x24]
push ecx
lea edx, [esp + 0xb8]
push edx
push eax
call fcn.00537430
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
add edx, 4
add eax, 0xfffffffe
cmp ecx, eax
mov dword [esp + 0x20], edx
jne 0x53b5f8
mov eax, dword [esp + 0xc]
imul dword [esp + 0x38]
shrd eax, edx, 0xe
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x74]
add eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
jmp 0x53b60a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add eax, edx
mov dword [esp + 0xc], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
inc ecx
cmp ecx, eax
mov dword [esp + 0x44], ecx
jl 0x53b1e9
mov ebx, dword [esp + 0x84]
mov esi, dword [ebp + 0x2c]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
lea eax, [edi - 2]
cmp ecx, eax
jne 0x53b665
mov eax, dword [esp + 0x1c]
imul dword [esp + 0x3c]
shrd eax, edx, 0xe
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x8c]
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x1c], eax
jmp 0x53b67b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
add eax, edx
mov dword [esp + 0x1c], 0x4000
mov dword [esp + 0x18], eax
inc ecx
cmp ecx, edi
mov dword [esp + 0x10], ecx
jl 0x53b152
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30