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

Disassembly:
mov eax, dword [esp + 0x20]
xor edx, edx
sub esp, 0x9c
cmp eax, edx
jne 0x5367d1
mov eax, dword [esp + 0xac]
add eax, 0xc
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xd0]
push edi
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x9c], ecx
mov eax, ecx
mov ecx, ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x6c], ecx
mov ecx, 1
cmp ebp, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x68], eax
jle 0x53686b
lea eax, [esi + 8]
mov edi, dword [eax + 4]
cmp edi, ebx
jl 0x536823
jne 0x536837
mov ebp, dword [eax]
cmp ebp, dword [esp + 0x9c]
jge 0x536837
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp + 0x9c], edx
mov dword [esp + 0x30], ecx
mov edx, ecx
jmp 0x53685c
mov ebp, dword [esp + 0x6c]
cmp ebp, edi
jl 0x53684b
jne 0x53685c
mov edi, dword [esp + 0x68]
mov ebp, dword [eax]
cmp edi, ebp
jge 0x53685c
mov edi, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x68], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x6c], edi
mov ebp, dword [esp + 0xd4]
inc ecx
add eax, 8
cmp ecx, ebp
jl 0x53680f
lea ebx, [edx - 1]
lea edi, [edx + 1]
test edx, edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], ebx
jne 0x536884
lea ebx, [ebp - 1]
mov dword [esp + 0x18], ebx
lea eax, [ebp - 1]
cmp edx, eax
mov dword [esp + 0x28], eax
jne 0x536891
xor edi, edi
xor eax, eax
mov ecx, dword [esi + edx*8 + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esi + ebx*8 + 4]
mov ebp, dword [esi + edi*8]
mov dword [esp + 0x10], eax
lea eax, [esi + edx*8 + 4]
mov edi, dword [esi + edi*8 + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esi + edx*8]
sub ebx, ecx
sub ebp, eax
imul ebx, ebp
mov ebp, dword [esp + 0x18]
sub edi, ecx
mov dword [esp + 0x2c], edx
mov ebp, dword [esi + ebp*8]
sub ebp, eax
imul edi, ebp
sub edi, ebx
test edi, edi
jle 0x536acf
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x536902
mov edi, dword [esp + 0xd4]
mov eax, dword [esi + 4]
cmp eax, dword [esi + edi*8 - 4]
jne 0x53691c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
jmp 0x53691c
mov eax, dword [esi + ebx*8 + 4]
mov edi, dword [esi + ebx*8 - 4]
cmp eax, edi
jne 0x536915
lea eax, [ebx - 1]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0xd4]
mov ebp, dword [esp + 0x10]
mov eax, edx
cmp edx, ebp
mov ebp, dword [esp + 0x14]
je 0x53693c
inc eax
cmp eax, edi
jne 0x536931
xor eax, eax
inc ebp
cmp eax, dword [esp + 0x10]
jne 0x53692a
mov dword [esp + 0x14], ebp
test edx, edx
jne 0x536955
mov ecx, dword [esi + 4]
mov eax, dword [esi + edi*8 - 4]
cmp ecx, eax
jne 0x536965
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
jmp 0x536969
cmp ecx, dword [esi + edx*8 - 4]
jne 0x536965
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
jmp 0x536969
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov ebx, dword [esp + 0x24]
je 0x536988
dec eax
cmp eax, 0xffffffff
jne 0x53697b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc ebx
cmp eax, ecx
jne 0x536971
mov dword [esp + 0x24], ebx
inc ebp
shl ebp, 4
push ebp
call fcn.0054a1d0
inc ebx
mov edi, eax
shl ebx, 4
push ebx
mov dword [esp + 0x4c], edi
call fcn.0054a1d0
push ebp
mov dword [esp + 0x44], eax
call fcn.0054a1d0
mov ebp, eax
push ebx
mov dword [esp + 0x44], ebp
call fcn.0054a1d0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
mov eax, dword [esp + 0xc4]
je 0x536a48
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x18], ebx
lea ecx, [ebp + 8]
mov dword [esp + 0x20], edi
mov ebp, dword [esp + 0xd4]
mov edi, edx
inc edx
cmp edx, ebp
jne 0x5369f1
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 + 0x18]
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 + 0x18], ebx
jne 0x5369e1
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
je 0x536ca7
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ebp, ebx
mov dword [esp + 0x18], ebx
sub ebp, edi
lea ecx, [edi + 8]
mov dword [esp + 0x20], ebp
mov edi, edx
dec edx
cmp edx, 0xffffffff
jne 0x536a7b
mov edx, dword [esp + 0x28]
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 + 0x18]
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 + 0x1c]
cmp edx, edi
mov dword [esp + 0x18], ebx
jne 0x536a6f
jmp 0x536c9f
mov ebp, dword [esp + 0x28]
cmp edx, ebp
jne 0x536ae4
cmp ecx, dword [esi + 4]
jne 0x536af3
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x536af7
cmp ecx, dword [esi + edx*8 + 0xc]
jne 0x536af3
lea eax, [edx + 1]
mov dword [esp + 0x2c], eax
jmp 0x536af7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x536b31
mov edi, dword [esp + 0xd4]
mov ebx, dword [esp + 0x24]
inc eax
cmp eax, edi
jne 0x536b11
xor eax, eax
inc ebx
cmp eax, ecx
jne 0x536b0a
mov dword [esp + 0x24], ebx
mov eax, dword [esi + ecx*8 + 4]
cmp ecx, ebp
jne 0x536b37
cmp eax, dword [esi + 4]
jne 0x536b42
mov dword [esp + 0x10], 0
jmp 0x536b42
mov ebx, dword [esp + 0x24]
jmp 0x536b1a
cmp eax, dword [esi + ecx*8 + 0xc]
jne 0x536b42
inc ecx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
cmp edx, eax
je 0x536b61
dec edx
cmp edx, 0xffffffff
jne 0x536b58
mov edx, dword [esp + 0x28]
inc ebp
cmp edx, eax
jne 0x536b4e
mov dword [esp + 0x14], ebp
inc ebp
shl ebp, 4
push ebp
call fcn.0054a1d0
inc ebx
mov edi, eax
shl ebx, 4
push ebx
mov dword [esp + 0x4c], edi
call fcn.0054a1d0
push ebp
mov dword [esp + 0x44], eax
call fcn.0054a1d0
mov ebp, eax
push ebx
mov dword [esp + 0x44], ebp
call fcn.0054a1d0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
mov eax, dword [esp + 0xc4]
je 0x536c29
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x18], ebx
lea ecx, [ebp + 8]
mov dword [esp + 0x20], edi
mov ebp, dword [esp + 0xd4]
mov edi, edx
inc edx
cmp edx, ebp
jne 0x536bd2
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 + 0x18]
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 + 0x1c]
cmp edx, edi
mov dword [esp + 0x18], ebx
jne 0x536bc2
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp edx, ecx
je 0x536ca7
mov ebx, edi
sub edi, ebp
mov dword [esp + 0x18], ebx
lea ecx, [ebp + 8]
mov dword [esp + 0x20], edi
mov edi, edx
dec edx
cmp edx, 0xffffffff
jne 0x536c50
mov edx, dword [esp + 0x28]
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 + 0x18]
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 + 0x18], ebx
jne 0x536c44
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
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 + 0xd0]
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x3c]
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 + 0x14]
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 + 0xb4]
mov edx, dword [esp + 0xbc]
mov ecx, dword [eax + 8]
mov dword [esp + 0x64], ecx
mov ecx, dword [edx + 8]
mov edx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x98], edx
xor eax, eax
xor ecx, ecx
xor edx, edx
test bl, bl
setne dl
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0xcc]
test edx, edx
jne 0x536d8f
mov edx, dword [esp + 0x40]
mov edx, dword [edx]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x1c]
mov edx, dword [esi + edx*8 + 4]
jmp 0x536fe4
mov ebx, dword [esp + 0xcc]
mov edx, dword [ebx]
shl edx, 0x14
add edx, 0x80000
mov dword [esp + 0x9c], edx
mov edx, dword [ebx + 8]
mov ebx, dword [esp + 0x1c]
shl edx, 0x14
mov esi, dword [esi + ebx*8 + 4]
sub edx, 0x80000
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0xcc]
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 0x537428
mov esi, dword [esp + 0x40]
cmp esi, ebx
jl 0x537428
cmp ebx, edx
jg 0x536e00
mov dword [esp + 0x28], edx
jmp 0x536fd8
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
mov eax, 1
dec ebx
cmp ecx, eax
mov dword [esp + 0x10], eax
jle 0x536e2e
add edi, 0xc
cmp dword [edi - 8], ebx
jg 0x536e22
cmp ebx, dword [edi]
jl 0x536e2a
inc eax
add edi, 0x10
cmp eax, ecx
jl 0x536e19
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x24]
mov ecx, 1
cmp edx, ecx
mov dword [esp + 0x14], ecx
jle 0x536e5b
mov eax, dword [esp + 0x38]
add eax, 0xc
cmp dword [eax - 8], ebx
jg 0x536e4f
cmp ebx, dword [eax]
jl 0x536e57
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x536e46
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
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 + 0x48], edx
shl eax, 0x14
sub edi, edx
cdq
idiv edi
mov edx, dword [esp + 0x34]
shl ebp, 0x14
mov esi, dword [ecx + edx - 0x10]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
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 + 0x70], eax
mov eax, dword [esp + 0x34]
mov edx, eax
mov edi, dword [ecx + eax - 0xc]
mov eax, dword [ecx + edx - 4]
mov ecx, dword [esp + 0x48]
sub eax, edi
shl eax, 0x14
cdq
idiv dword [esp + 0x20]
shl edi, 0x14
mov dword [esp + 0x74], eax
mov eax, ebx
sub eax, ecx
mov ecx, eax
imul ecx, dword [esp + 0x78]
lea edx, [ecx + ebp + 0x80000]
mov ecx, eax
imul ecx, dword [esp + 0x70]
imul eax, dword [esp + 0x74]
mov dword [esp + 0x30], edx
lea edx, [ecx + esi + 0x80000]
mov ecx, dword [esp + 0x14]
lea eax, [eax + edi + 0x80000]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
shl ecx, 4
mov dword [esp + 0x58], 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 + 0x48], edx
shl eax, 0x14
sub esi, edx
cdq
idiv esi
mov edx, dword [esp + 0x2c]
add esi, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
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 + 0x3c]
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 + 0x48]
sub ebx, ecx
mov ecx, dword [esp + 0x80]
imul ecx, ebx
shl edi, 0x14
shl ebp, 0x14
lea edx, [ecx + edi + 0x80000]
mov ecx, dword [esp + 0x84]
imul ecx, ebx
mov dword [esp + 0x90], eax
imul eax, ebx
mov edi, dword [esp + 0x44]
mov dword [esp + 0x24], edx
shl esi, 0x14
lea edx, [ecx + ebp + 0x80000]
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
lea eax, [eax + esi + 0x80000]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x20], esi
cmp esi, edx
jle 0x536fe8
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0xbc]
mov edx, esi
imul edx, dword [esp + 0x18]
add edx, dword [ebx + 4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x20]
cmp esi, edx
jg 0x53740b
mov edx, dword [esp + 0x38]
shl ecx, 4
shl eax, 4
lea ebx, [ecx + edx]
mov edx, dword [esp + 0x3c]
lea esi, [eax + edi]
lea eax, [eax + ebp - 0xc]
lea ecx, [ecx + edx - 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x94], esi
mov dword [esp + 0x8c], ebx
mov eax, edx
add ebx, 0xfffffff0
add esi, 0xfffffff0
sub ebp, edi
sub eax, ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx + 4]
cmp edx, eax
je 0x5370b9
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x74]
add ecx, eax
mov eax, dword [esp + 0x5c]
mov ebp, dword [esp + 0x70]
add eax, edi
mov edx, dword [esp + 0x98]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x58]
sar eax, 0x14
imul eax, dword [esp + 0x64]
add ecx, ebp
mov dword [esp + 0x58], ecx
sar ecx, 0x14
add edx, eax
lea ecx, [ecx + ecx*2]
jmp 0x53715f
mov edx, dword [esi + 0x10]
add esi, 0x10
mov eax, edx
mov edi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc]
add edi, 0x10
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x1c], edi
mov dword [esp + 0x30], eax
mov eax, dword [esi + 4]
sub ecx, eax
lea eax, [esi + 0x10]
mov dword [esp + 0x94], eax
mov eax, dword [esi + 8]
sub eax, edx
mov edi, dword [edi]
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0xa4]
mov ebp, dword [edx + esi]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
mov eax, ebp
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x58], eax
mov eax, edi
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [edx + 4]
sub eax, ebp
shl eax, 0x14
cdq
idiv ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
sub eax, edi
imul edi, dword [esp + 0x64]
shl eax, 0x14
cdq
idiv ecx
mov edx, dword [esp + 0x98]
lea ecx, [ebp + ebp*2]
add edx, edi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x8c]
add ecx, edx
mov edx, dword [esp + 0x28]
cmp dword [eax + 4], edx
je 0x5371a9
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x7c]
mov edx, dword [esp + 0x84]
add edi, eax
mov eax, dword [esp + 0x60]
add ebp, edx
mov edx, dword [esp + 0x90]
add eax, edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x60], eax
jmp 0x537253
mov eax, dword [esp + 0x14]
mov edx, dword [ebx + 0x10]
add ebx, 0x10
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, edx
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x48], ebx
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
sub edi, eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 8]
sub eax, edx
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0xa8]
mov edx, dword [edx + ebx]
mov ebp, edx
shl ebp, 0x14
add ebp, 0x80000
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
shl eax, 0x14
add eax, 0x80000
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x2c]
add edi, eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
sub eax, edx
shl eax, 0x14
cdq
idiv edi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x84], eax
mov eax, dword [edx + 8]
sub eax, dword [esp + 0x50]
shl eax, 0x14
cdq
idiv edi
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
sar eax, 0x14
sar edx, 0x14
mov dword [esp + 0x50], eax
sub eax, edx
mov dword [esp + 0x4c], edx
je 0x5372b0
mov edx, dword [esp + 0x2c]
lea edi, [eax + edx]
mov eax, dword [esp + 0x58]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, ebp
and eax, 0xfff00000
sub eax, edx
cdq
idiv edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
sar eax, 0x14
shl eax, 0x14
mov edx, eax
mov eax, dword [esp + 0x60]
and eax, 0xfff00000
sub eax, edx
cdq
idiv edi
mov dword [esp + 0x40], eax
jmp 0x5372ba
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xcc]
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x68], ecx
test eax, eax
jne 0x5372de
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
jmp 0x53736d
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x30]
cmp edx, eax
jl 0x5373e0
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x24]
cmp eax, edx
jl 0x5373e0
mov eax, dword [esp + 0x30]
cmp edx, eax
jg 0x537316
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
jmp 0x53734d
mov edi, dword [esp + 0xcc]
sub edx, eax
sar edx, 0x14
mov edi, dword [edi]
mov dword [esp + 0x4c], edi
mov edi, edx
imul edx, dword [esp + 0x40]
imul edi, dword [esp + 0x54]
mov ebp, edx
mov edx, edi
mov eax, ebp
sar eax, 0x14
imul eax, dword [esp + 0x64]
sar edx, 0x14
lea ecx, [ecx + edx*2]
add edx, ecx
lea ecx, [edx + eax]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x24]
cmp eax, edx
jg 0x537362
mov eax, dword [esp + 0x50]
jmp 0x53736d
mov eax, dword [esp + 0xcc]
mov eax, dword [eax + 8]
dec eax
mov edx, dword [esp + 0x4c]
cmp edx, eax
jg 0x5373d4
mov ebx, dword [esp + 0x10]
lea edx, [ebx + edx*4 + 1]
mov ebx, dword [esp + 0x4c]
sub eax, ebx
inc eax
mov dword [esp + 0x50], eax
mov al, byte [ecx]
mov bl, byte [ecx + 1]
mov cl, byte [ecx + 2]
mov byte [edx], bl
mov ebx, dword [esp + 0x40]
mov byte [edx - 1], al
mov eax, dword [esp + 0x54]
add ebp, ebx
add edi, eax
mov eax, ebp
sar eax, 0x14
imul eax, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov byte [edx + 1], cl
mov ecx, edi
add ebx, eax
mov eax, dword [esp + 0x50]
mov byte [edx + 2], 0xff
sar ecx, 0x14
add edx, 4
lea ecx, [ecx + ecx*2]
add ecx, ebx
dec eax
mov dword [esp + 0x50], eax
jne 0x537388
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add eax, ecx
jmp 0x5373ea
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jle 0x537061
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
push edi
call fcn.0054a2d0
mov eax, dword [esp + 0x3c]
push eax
call fcn.0054a2d0
push ebp
call fcn.0054a2d0
mov ecx, dword [esp + 0x48]
push ecx
jmp 0x537443
push edi
call fcn.0054a2d0
mov edx, dword [esp + 0x3c]
push edx
call fcn.0054a2d0
push ebp
call fcn.0054a2d0
mov eax, dword [esp + 0x48]
push eax
call fcn.0054a2d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret